cleverly.datasets.offer_after_no_order#
- cleverly.datasets.offer_after_no_order(previous_order: Any) Any[source]#
Return the win-back offer: a code for a customer who did not order last week.
- Parameters:
- previous_orderarray_like
offloat Last week’s order,
1for an order and0for none. In week 1 it is the order of week 0, the week before the campaign.
- previous_orderarray_like
- Returns:
See also
ORDER_PLANSThe three plans of the weekly-outcomes tutorial.
Examples
>>> from cleverly.datasets import offer_after_no_order >>> offer_after_no_order([0, 1, 0]).tolist() [1.0, 0.0, 1.0]