beanmachine.ppl.compiler.fix_observations module

beanmachine.ppl.compiler.fix_observations.observations_fixer(bmg: beanmachine.ppl.compiler.bm_graph_builder.BMGraphBuilder)

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.