reno.pymc.to_pymc_model_str#
- reno.pymc.to_pymc_model_str(model, observations=None, steps=None)#
Construct a string of python code to create a pymc model wrapping this system dynamics model. Should be a functional (string) equivalent of the
to_pymc_model()function. Includes the output frompt_sim_step_str().- Expected imports for the resulting code to run:
>>> import pytensor >>> import pytensor.tensor as pt >>> import pymc as pm >>> import numpy as np
(Alternatively get the string code for these imports with
pymc_model_imports())- Parameters:
model (Model)
observations (list[Observation])
steps (int)
- Return type:
str