plot_buyer_profile_heatmap#

pymc_marketing.customer_choice.taste_profiles.plot_buyer_profile_heatmap(model, n_samples=300, ax=None)[source]#

(market × dimension) diverging heatmap of the average buyer’s taste vector.

Each row is a market (sorted by avg price); each column is one random- coefficient dimension. Red cells mean the typical buyer scores above-modal on that dimension; blue means below-modal.

Parameters:
modelBayesianBLP

A fitted model.

n_samplesint

Number of posterior draws.

axmatplotlib Axes, optional

Pre-existing axis. When None a new figure is created.

Returns:
matplotlib.figure.Figure