Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Issue plotting P_alive

See original GitHub issue

I’m running the following code in a local Jupyter Notebook. 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:


Any ideas on where I should look first to debug?

Thanks A

Issue Analytics

  • State:open
  • Created 5 years ago
  • Comments:9

github_iconTop GitHub Comments

ZhengTzercommented, Oct 12, 2019

I have the same issue, any solution?

teresadongcommented, Aug 21, 2019

I was able to get the CDNOW data to work see:

But I wasn’t able to get to work. Please see:


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:

I commented out from lifetimes.estimation import * because it doesn’t seem to exist anymore

Thanks! Teresa

Read more comments on GitHub >

github_iconTop 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 object containing the ......
Read more >
Plum-Air on PA live! 5.30.2022 |
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 Description Functions for data preparation, parameter estimation, scoring, and plotting ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Post

No results found

github_iconTop Related Hashnode Post

No results found