consumer_taste_grid#
- pymc_marketing.customer_choice.taste_profiles.consumer_taste_grid(model)[source]#
Halton grid as a labelled DataFrame.
- Parameters:
model (
BayesianBLP) – Constructed (need not be fitted) BayesianBLP.- Return type:
pd.DataFrame- Returns:
Shape
(n_mc_draws, n_random). Column names are the random-coefficient names, in the same order asmodel._random_coef_names. Each row is one consumer type; columndcarries the standard-normal taste draw for that random-coefficient dimension.- Raises:
RuntimeError – If the model was constructed with
random_coef_on=[](no consumer-heterogeneity dimensions exist).