beanmachine.ppl.compiler.gen_bmg_graph module
- class beanmachine.ppl.compiler.gen_bmg_graph.GeneratedGraph(bmg: beanmachine.ppl.compiler.bm_graph_builder.BMGraphBuilder)
Bases:
object
- graph: beanmachine.graph.Graph
- node_to_graph_id: Dict[beanmachine.ppl.compiler.bmg_nodes.BMGNode, int]
- query_to_query_id: Dict[beanmachine.ppl.compiler.bmg_nodes.Query, int]
- beanmachine.ppl.compiler.gen_bmg_graph.to_bmg_graph(bmg: beanmachine.ppl.compiler.bm_graph_builder.BMGraphBuilder, skip_optimizations: Set[str] = {'beta_bernoulli_conjugate_fixer', 'beta_binomial_conjugate_fixer', 'normal_normal_conjugate_fixer'}) beanmachine.ppl.compiler.gen_bmg_graph.GeneratedGraph