in src/lic/ppl/inference/abstract_mh_infer.py [0:0]
def single_inference_run_with_sequential_block_update(self, block: Block):
"""
Run one iteration of the inference algorithm for a given block.
:param block: the block of random variables to be resampled sequentially
in this inference run
"""
LOGGER_INFERENCE.log(
LogLevel.DEBUG_UPDATES.value,
"=" * 30 + "\n" + "Block: {b}\n".format(b=block.first_node),
)
(
nodes_log_updates,
children_log_updates,
proposal_log_updates,
) = self.block_propose_change(block)
self.accept_or_reject_update(
nodes_log_updates, children_log_updates, proposal_log_updates
)