reno.pymc.pt_sim_step_str#
- reno.pymc.pt_sim_step_str(model)#
Construct a string of python code for the step function for this model that could be used by a pytensor scan operation. Should be a functional (string) equivalent of the
pt_sim_step()function.- Expected imports for the resulting code to run:
>>> import pytensor.tensor as pt >>> import pymc as pm
(use
pt_sim_step_imports()to get these programatically)Note that this code is in no way PEP8 formatted, for complex models some of the lines will be exceptionally long.
- Parameters:
model (Model)
- Return type:
str