BudgetPlots#

class pymc_marketing.mmm.plotting.budget.BudgetPlots[source]#

Budget allocation plots.

Stateless namespace — all data is supplied via the samples argument on each method call. Obtain an instance via optimizer.plot on BudgetOptimizerWrapper (when plot_suite='new').

Provides allocation_roas (forest plot of per-channel ROAS distributions) and contribution_over_time (time-series of channel contributions from an optimised budget allocation).

Tabular export for frontends uses optimizer.summary (same samples argument), which returns BudgetSummaryFactory.

Methods

BudgetPlots.__init__(*args, **kwargs)

BudgetPlots.allocation_roas(samples[, dims, ...])

Forest plot of per-channel ROAS from an optimised budget allocation.

BudgetPlots.contribution_over_time(samples)

Time-series of channel contributions from an optimised budget allocation.

Attributes

summary

Access budget summary DataFrame generation (parallel to plot methods).