pymc.model.fgraph.model_from_fgraph(fgraph, mutate_fgraph=False)[source]#

Convert FunctionGraph to PyMC model.

fgraph: FunctionGraph

fgraph representation of a PyMC model, with dummy ModelVar Ops. See fgraph_from_model for more details.

mutate_fgraph: bool, default False
Whether the function is allowed to modify the fgraph (and it’s variables) in place.

This is useful if these are not needed anymore after the model is created.