PreparedEvaluation#
- class pymc_marketing.mmm.incrementality.PreparedEvaluation(start_ts, end_ts, periods, posterior, reducer, effects, probed, freq_offset, windows)[source]#
Validated request, posterior, reducer, probe and windows of one evaluation.
- Parameters:
start_ts (
Timestamp) – The validated range of spend periods.end_ts (
Timestamp) – The validated range of spend periods.periods (
list[tuple[Timestamp,Timestamp]]) –(start, end)of each spend period.posterior (
Dataset) – The subsampled posterior everything is evaluated at.reducer (
IncrementalReducer) – Maps a linear-predictor change to a response-scale increment.effects (
tuple[ChannelDependentEffect,...]) – The channel-dependent effects evaluated withchannel_contribution.probed (
ProbedReach) – The leased evaluator, the baseline and the measured reach.freq_offset (
BaseOffset) – The data’s date frequency.windows (
EvaluationWindows) – Each period’s evaluation window.
Methods
PreparedEvaluation.__init__(start_ts, ...)Return the leased evaluator to the model's cache.
Attributes