BassModel.build_model#

BassModel.build_model(data=None)[source]#

Build the Bass diffusion model from the given data.

After building, the underlying pm.Model is available via self.model, giving direct access to all PyMC model functionality (e.g. pm.sample_prior_predictive, pm.sample_posterior_predictive).

Parameters:
dataoptional

Input data in one of the supported formats. If None, reads from self.idata.fit_data (used internally by build_from_idata()).