Model building#

Tools for defining models. as_model turns a function with PyMC statements into a reusable model factory, and ModelBuilder is a base class for packaging a model behind a scikit-learn-like fit/predict interface, with saving and loading included.

as_model(*model_args, **model_kwargs)

Decorator to provide context to PyMC models declared in a function.

model_builder.ModelBuilder([model_config, ...])

ModelBuilder can be used to provide an easy-to-use API (similar to scikit-learn) for models and help with deployment.