question-mark
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.

plot_period_transactions with low "s" parameter

See original GitHub issue

Hello, I have problem with plot_period_transactions for estimated Pareto/NBD parameters. Parameters:

OrderedDict([('r', 1.2264068998969124),
             ('alpha', 12.16294151917949),
             ('s', 4.6377925306795664e-10),
             ('beta', 32.52434379061591)])

I get this error message:

C:\ProgramData\Anaconda3\lib\site-packages\lifetimes\generate_data.py:105: RuntimeWarning: divide by zero encountered in double_scalars
  time_of_death = stats.expon.rvs(scale=1. / mu)

I think this issue comes with “s” parameter, which is extreamly low. Could you confirm it? Is it bug or I do something wrong?

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:7 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
albrzykowskicommented, Jul 26, 2019

Hi, @CamDavidsonPilon Do you have any conclusions why CLV is wrongly calculated for this dataset. Have you made any statistics that can explain the low value of s?

Kind regards, Leszek

0reactions
CamDavidsonPiloncommented, Sep 20, 2018

the s parameter controls how fast people die, so I would do some summary statistics on your training data. Perhaps there is something wrong there.

Read more comments on GitHub >

github_iconTop Results From Across the Web

RF engineering basic concepts: S-parameters
Abstract. The concept of describing RF circuits in terms of waves is discussed and the. S-matrix and related matrices are defined.
Read more >
S-Parameters
The S-parameters can be measured by embedding the two-port network (the device- under-test, or, DUT) in a transmission line whose ends are ...
Read more >
Microwaves101 | S-parameters
Definition of S-parameters. S-parameters describe the response of an N-port network to signal(s) incident to any or all of the ports. The first...
Read more >
S-Parameter Techniques – HP Application Note 95-1
At low frequencies most circuits behave in a predictable manner and can be described by a group of replaceable, lumped-equivalent black boxes. At...
Read more >
Scattering parameters
Scattering parameters or S-parameters describe the electrical behavior of linear electrical networks when undergoing various steady state stimuli by ...
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 Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found