GammaGammaModelIndividual.fit#
- GammaGammaModelIndividual.fit(data=None, method='mcmc', fit_method=None, **kwargs)[source]#
Infer model posterior.
- Parameters:
- data
pd.DataFrame, optional The input data for model fitting. If not provided, uses data from model initialization (deprecated) or previously built model.
- method: str
Method used to fit the model. Options are: - “mcmc”: Samples from the posterior via
pymc.sample(default) - “map”: Finds maximum a posteriori viapymc.find_MAP- “demz”: Samples from the posterior viapymc.sampleusing DEMetropolisZ - “advi”: Samples from the posterior viapymc.fit(method="advi")andpymc.sample- “fullrank_advi”: Samples from the posterior viapymc.fit(method="fullrank_advi")andpymc.sample- kwargs:
Other keyword arguments passed to the underlying PyMC routines
- data