SpendReach#

class pymc_marketing.mmm.spend_reach.SpendReach(effective_l_max, requires_full_axis, measured=<factory>)[source]#

What the evaluation is allowed to assume about its window.

The whole contract between this module and Incrementality: two numbers, plus the per-node measurements they were derived from for anyone who wants to see the working.

Parameters:
effective_l_maxint

Evaluation-window half-length covering every path spend can take – the model’s own adstock.l_max plus the widest extra carryover measured. A mediated path that chains a second adstock outlives the direct one, and a window sized for the direct path alone would cut the tail off.

requires_full_axisbool

Whether every period has to be evaluated on the complete fitted date axis, because some node’s value depends on the whole series.

measuredmapping

Per evaluated node, its TemporalReach. Empty when no probe was possible.

Methods

SpendReach.__init__(effective_l_max, ...[, ...])

Attributes

effective_l_max

requires_full_axis

measured