MNLogitPreprocessedData#
- class pymc_marketing.customer_choice.mnl_logit.MNLogitPreprocessedData(X, F, y, alternatives, fixed_covar, coords)[source]#
Arrays and metadata built from choice data before a model is created.
- Attributes:
- X
np.ndarray Alternative-specific covariates of shape
(n_obs, n_alts, n_covariates).- F
np.ndarrayorNone Fixed covariates of shape
(n_obs, n_fixed_covariates), orNonewhen the utility equations have no fixed covariates.- y
np.ndarray Encoded choices of shape
(n_obs,).- alternatives
listofstr Alternative names in utility-equation order.
- fixed_covar
np.ndarray Unique fixed-covariate names taken from the utility equations.
- coords
dict Coordinates for the PyMC model.
- X
Methods
MNLogitPreprocessedData.__init__(X, F, y, ...)Attributes