beanmachine.ppl.compiler.fix_observations module

beanmachine.ppl.compiler.fix_observations.observations_fixer(bmg: beanmachine.ppl.compiler.bm_graph_builder.BMGraphBuilder) Callable[[], Tuple[bool, beanmachine.ppl.compiler.error_report.ErrorReport]]

This fixer attempts to fix violations of BMG type system requirements in observation nodes. It also finds observations that are impossible – say, an observation that a Boolean node is -3.14 – and reports them as errors.