Issue plotting P_alive
See original GitHub issueI’m running the following code in a local Jupyter Notebook.
https://github.com/susanli2016/Machine-Learning-with-Python/blob/master/CLV_Online_Retail.ipynb
I had an issue with Matplotlib
after installing Lifetimes and had to reinstall via Conda.
The code all runs as expected, predict works etc and all the plots run correctly except for plot_history_alive
which only plots the purchases
, but not P_alive
.
I get no errors or warnings.
I can run predict on different period lengths for different customers and it runs fine, so might be related to the libraries? I had a quick look at the plot_history_alive
function but I couldn’t see any reason why it shouldn’t work.
I’m using:
matplotlib==2.2.2
pandas==0.23.4
lifetimes==0.9.1.0
Any ideas on where I should look first to debug?
Thanks A
Issue Analytics
- State:
- Created 5 years ago
- Comments:9
Top Results From Across the Web
mbgcnbd.PAlive: (M)BG/CNBD-k P(alive) in mplatzer/BTYDplus ...
Uses (M)BG/CNBD-k model parameters and a customer's past transaction behavior to return the probability that they are still alive at the end of...
Read more >Walkthrough for the CLVTools Package
Independent of the probabilistic model applied in CLVTools, the general workflow consists of three main steps: 1. Create a clv.data object containing the ......
Read more >Plum-Air on PA live! 5.30.2022 | PAhomepage.com
Plum-Air on PA live! 5.30.2022 ... Inmate charged with plotting to kill two girls, woman ... Local mayors meet to discuss common issues....
Read more >Editing headings on metan forest plots - Statalist
Hi everyone, I am making a forest plot using the metan command and I'd like ... metan Tdeaths Talive Pdeath Palive, rr fixedi...
Read more >Implementing BTYD Models with the Log Sum Exp Patch
BugReports https://github.com/ghuiber/BTYD/issues. Description Functions for data preparation, parameter estimation, scoring, and plotting ...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
I have the same issue, any solution?
I was able to get the CDNOW data to work see: https://colab.research.google.com/drive/1oc8vbnG-kHc_xaSZStNBH3e1R_VFboqb
But I wasn’t able to get https://github.com/susanli2016/Machine-Learning-with-Python/blob/master/CLV_Online_Retail.ipynb to work. Please see: https://colab.research.google.com/drive/15Ab4lbeai0TnVcaWOKF2ObpEtQVNnhuQ
In the original github, it looked like this:
The changes I made to the notebook were as follows: I downgraded scipy from 1.2.0 to 1.1.0 because of: https://github.com/CamDavidsonPilon/lifetimes/issues/274
I commented out from
lifetimes.estimation import *
because it doesn’t seem to exist anymoreThanks! Teresa