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:
Xnp.ndarray

Alternative-specific covariates of shape (n_obs, n_alts, n_covariates).

Fnp.ndarray or None

Fixed covariates of shape (n_obs, n_fixed_covariates), or None when the utility equations have no fixed covariates.

ynp.ndarray

Encoded choices of shape (n_obs,).

alternativeslist of str

Alternative names in utility-equation order.

fixed_covarnp.ndarray

Unique fixed-covariate names taken from the utility equations.

coordsdict

Coordinates for the PyMC model.

Methods

Attributes