BudgetPlots#
- class pymc_marketing.mmm.plotting.budget.BudgetPlots[source]#
Budget allocation plots.
Stateless namespace — all data is supplied via the
samplesargument on each method call. Obtain an instance viaoptimizer.plotonBudgetOptimizerWrapper(whenplot_suite='new').Provides
allocation_roas(forest plot of per-channel ROAS distributions) andcontribution_over_time(time-series of channel contributions from an optimised budget allocation).Tabular export for frontends uses
optimizer.summary(same samples argument), which returnsBudgetSummaryFactory.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
summaryAccess budget summary DataFrame generation (parallel to plot methods).