cleverly.datasets.weekly_orders_truth#
- cleverly.datasets.weekly_orders_truth() dict[str, float][source]#
Return the exact weekly order share under each plan and tilt, and each contrast.
- Returns:
See also
make_weekly_ordersThe generator whose law these truths enumerate.
ORDER_PLANSThe plans this function evaluates.
Notes
Under a plan or a tilt, tracking loss is removed, and the offer of each week is drawn from the plan’s chance given the customer’s path so far. A tilt by a factor \(\delta\) multiplies the odds of the scoring system’s chance \(\pi\) of an offer, so the offer chance is \(\delta \pi / (\delta \pi + 1 - \pi)\).
Examples
>>> from cleverly.datasets import weekly_orders_truth >>> truth = weekly_orders_truth() >>> round(truth["ate_regimen[always vs never @ t=1]"], 3) 0.178 >>> round(truth["ate_regimen[odds x2 vs natural course @ t=3]"], 3) 0.013