Skip to content

Instantly share code, notes, and snippets.

@meraldo-aliz
Created March 2, 2022 04:17
Show Gist options
  • Save meraldo-aliz/4190a9ed139844e7490e0a996fac3b9b to your computer and use it in GitHub Desktop.
Save meraldo-aliz/4190a9ed139844e7490e0a996fac3b9b to your computer and use it in GitHub Desktop.
lifetimes
alive_prob = bgf.conditional_probability_alive(frequency=sample_customer['frequency_cal'],
recency=sample_customer['recency_cal'],
T=sample_customer['T_cal'])
alive_prob # = 0.57089896
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment