NamSahng / h-and-m-recommender

An exercise to learn recys, including "buy it again", implicit library, kaggle repos
2 stars 1 forks source link

The parameter k in Modified Poisson-Gamma Model #1

Open yzflying opened 1 year ago

yzflying commented 1 year ago

About Equation 9 in paper "Buy It Again: Modeling Repeat Purchase Recommendations", it says: k is the number of purchases of product Ai by customer Cj. In the file "utils_bia.py", function get_lambda(row): may change "k = row['cnt']" to "k = row['cnt']+1"?

NamSahng commented 1 year ago

row['cnt'] is the number of purchases on product Ai(or product Ai's group) by customer Cj. You can check it on here or cell 9 of this notebook