sakkara.model.build(df: DataFrame, component: ModelComponent)#

Build a complete PyMC model based on a single ModelComponent (typically Likelihood). Sakkara will trace all underlying components, and their respective groupings, necessary for creating the model.

Parameters:
  • dfpandas.DataFrame containing columns defining groups used among ModelComponent objects.

  • componentModelComponent object (of the lowest hierarchy, typically a Likelihood) to init creation of PyMC model from.

Returns:

A PyMC model generated by the dataframe and component.

Return type:

pymc.Model