cleverly.datasets.offers_truth#
- cleverly.datasets.offers_truth(nodes: int = 48) dict[str, float][source]#
Return the exact week-4 full-price share under each plan, and each contrast with no offers.
Under a deterministic plan the offers follow from the engagement path, and the intervention removes consent loss. The mean is a sum over the sixteen engagement paths of an integral over tenure, which a Gauss–Hermite rule evaluates.
- Parameters:
- nodes
int, default=48 Number of Gauss–Hermite nodes for tenure.
- nodes
- Returns:
See also
make_sequential_offersThe generator whose law this truth integrates.
OFFER_PLANSThe plans this function evaluates.
Notes
The rule of a plan reads the engagement of the week it acts in, so the enumeration needs no offer path beyond the one the rule gives.
Examples
>>> from cleverly.datasets import offers_truth >>> truth = offers_truth() >>> sorted(truth)[:2] ['ate_regimen[discount vs none]', 'ate_regimen[shipping vs none]'] >>> truth["ate_regimen[win_back vs none]"] > 0.05 True