Comments (8)
I can confirm I get the same thing, investigating now.
Edit: it seems to be caused by c2bf495#diff-ca060ac937e79ba22cb0a6e9b881675aL43. Unfortunately, I can't recall why I made that change.
from lifetimes.
Hmm, the algorithm in the background is random - perhaps you got unlucky? Try running it again, and please report back the findings.
from lifetimes.
I re-ran it several times, obtaining the same results.
I know it is unlikely, but can this strange behaviour be related to the fact that I am using Python 3.4
(while your tutorial seems to be in Python 2.7
)?
I am also experiencing issues with this part of the tutorial:
from lifetimes.datasets import load_summary_data_with_monetary_value
summary_with_money_value = load_summary_data_with_monetary_value()
summary_with_money_value.head()
returning_customers_summary = summary_with_money_value[summary_with_money_value['frequency'] > 0]
returning_customers_summary.head()
I get an error:
ImportError: cannot import name 'load_summary_data_with_monetary_value'
When I try to import the file cdnow_customers_transactions.csv
by hand, the result of returning_customers_summary.head()
is:
frequency recency T monetary_value
customer_id
1 2 30.43 38.86 22.35
2 1 1.71 38.86 11.77
6 7 29.43 38.86 73.74
7 1 5.00 38.86 11.77
9 2 35.71 38.86 25.55
Which is consistent with the content of the file (but not with the tutorial).
from lifetimes.
I installed a separate Python 2.7
environment using Anaconda, and I still obtain the same graph. I wonder what the reason for this can be. I am still testing things and I will keep you updated.
from lifetimes.
The first issue should be solved in 3eda411
from lifetimes.
I've upload this bug fix to PyPI too. I image the latest should also have cdnow_customers_transactions.csv
- let me know if this is wrong.
from lifetimes.
Thank you!
from lifetimes.
😀
from lifetimes.
Related Issues (20)
- Wrong monetary_value HOT 3
- Question - Why average Monetary value and not Total meontary value?
- Wrong holdout monetary value HOT 1
- Implementing a bathtub-like hazard-rate AFT model
- ValueError: Some values in recency vector are larger than T vector when data has no issue. HOT 6
- Not Implemented - TypeError: unsupported operand type(s) for +: 'int' and 'str' HOT 4
- How to interpret expected purchase orders in future HOT 3
- Quantitative Metrics to assess model performance HOT 5
- Documentation flow incorrect? HOT 1
- Cross Validation Setup HOT 1
- Unreachable code after fitting betageofitter model HOT 2
- NaN predictions for customers with 0 frequency and 0 recency HOT 1
- Error when running plot_history_alive HOT 3
- data simulated vs holdout purchases HOT 8
- Runtime Warning HOT 3
- How to get conditional probability alive for the next few periods? HOT 1
- SQL statement to transform transactional data into RFM data HOT 1
- Recency Definition HOT 1
- model validation and performance measurement with unseen data HOT 3
- parameters in ModifiedBetaGeoFitter HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from lifetimes.