beanmachine.ppl.compiler.gen_bm_python module
- class beanmachine.ppl.compiler.gen_bm_python.ToBMPython(bmg: beanmachine.ppl.compiler.bm_graph_builder.BMGraphBuilder)
Bases:
object
- code: str
- dist_to_rv_id: Dict[beanmachine.ppl.compiler.bmg_nodes.BMGNode, int]
- no_dist_samples: Dict[beanmachine.ppl.compiler.bmg_nodes.BMGNode, int]
- node_to_func_id: Dict[beanmachine.ppl.compiler.bmg_nodes.BMGNode, int]
- node_to_var_id: Dict[beanmachine.ppl.compiler.bmg_nodes.BMGNode, int]
- observations: List[str]
- queries: List[str]
- beanmachine.ppl.compiler.gen_bm_python.to_bm_python(bmg: beanmachine.ppl.compiler.bm_graph_builder.BMGraphBuilder) str