最近新发现一个推荐系统库lightfm,为了防止忘记,和之前用过的surprise库一起做个小笔记。
surprise库
surprise可以算上是推荐系统中较为常用,知名度较高的库了,它是是scikit系列中的一个库。
官方文档:https://surprise.readthedocs.io/en/stable/getting_started.html
github:https://github.com/NicolasHug/Surprise
surprise库支持多种推荐算法
algorithm | describe |
---|---|
random_pred.NormalPredictor | Algorithm predicting a random rating based on the distribution of the training set, which is assumed to be normal. |
baseline_only.BaselineOnly | Algorithm predicting the baseline estimate for given user and item. |
knns.KNNBasic | A basic collaborative filtering algorithm. |
knns.KNNWithMeans | A basic collaborative filtering algorithm, taking into account the mean ratings of each user. |
knns.KNNWithZScore | A basic collaborative filtering algorithm, taking into account the z-score normalization of each user. |
knns.KNNBaseline | A basic collaborative filtering algorithm taking into account a baseline rating. |
matrix_factorization.SVD | The famous SVD algorithm, as popularized by Simon Funk during the Netflix Prize. |