- sakkara.model.build(df: DataFrame, component: ModelComponent)#
Build a complete PyMC model based on a single
ModelComponent(typicallyLikelihood). Sakkara will trace all underlying components, and their respective groupings, necessary for creating the model.- Parameters:
df –
pandas.DataFramecontaining columns defining groups used amongModelComponentobjects.component –
ModelComponentobject (of the lowest hierarchy, typically aLikelihood) to init creation of PyMC model from.
- Returns:
A PyMC model generated by the dataframe and component.
- Return type:
pymc.Model