Python推荐系统库--Surprise理论
Surprise
Surprise是scikit系列中的一个。Surprise的User Guide有详细的解释和说明
支持多种推荐算法
基于近邻方法(协同过滤)/neighborhood methods
矩阵分解方法/matrix factorization-based (SVD, PMF, SVD++, NMF)
下面介绍几种算法
基础算法:
1. random_pred.NormalPredictor
说明:Algorithm predicting a random rating based on the distribution of the training set, which is assumed to be normal.
意思是:算法基于训练集的分布预测随机等级,假设该分布为正态分布
说明:Algorithm predicting the baseline estimate for given user and item.
意思是:算法预测给定用户和项目的基线估计
协同过滤算法:
说明:A basic collaborative filtering algorithm.
意思是:一种基本的协同过滤算法
说明:A basic collaborative filtering algorithm, taking into account the mean ratings of each user.
意思是:一个基本的协同过滤算法,考虑到每个用户的平均评分
说明:A basic collaborative filtering algorithm taking into account a baseline rating.
意思是:一种基本的协同过滤算法考虑到基准评分
矩阵分解方法:
说明:The famous SVD algorithm, as popularized by Simon Funk during the Netflix Prize.
意思是:著名的SVD算法
说明:The SVD++ algorithm, an extension of SVD taking into account implicit ratings.
意思是:SVD++算法,SVD的一个扩展,考虑到隐式评级
说明:A collaborative filtering algorithm based on Non-negative Matrix Factorization.
意思是:一种基于非负矩阵的协同过滤算法
说明:A simple yet accurate collaborative filtering algorithm.
意思是:一种简单而准确的协同过滤算法
10. co_clustering.CoClustering
说明:A collaborative filtering algorithm based on co-clustering.
意思是:一种基于共聚类的系统过滤算法
其中基于近邻的方法(协同过滤)可以设定不同的度量准则
相似度度量标准
1. cosine
说明:Compute the cosine similarity between all pairs of users (or items).
意思是:计算所有用户对(或物品)之间的相似度
2. msd
说明:Compute the Mean Squared Difference similarity between all pairs of users (or items).
意思是:计算所有用户对(或物品)之间的平均平方差相似度
3. pearson
说明:Compute the Pearson correlation coefficient between all pairs of users (or items).
意思是:计算所有用户对(或物品)之间的皮尔逊相关系数
说明:Compute the (shrunk) Pearson correlation coefficient between all pairs of users (or items) using baselines for centering instead of means.
意思是:计算所有用户对(或物品)之间的皮尔逊相关系数(收缩),使用基线进行居中,而不是使用平均值
支持不同的评估准则
评估准则
1. rmse 最小均方根误差
2. mae 平均绝对误差
3. fcp 协调对的分数
参考文章:https://blog.csdn.net/mycafe_/article/details/79146764
Python推荐系统库--Surprise理论的更多相关文章
- Python推荐系统库Surprise
Surprise(Simple Python Recommendation System Engine)是一款推荐系统库,是scikit系列中的一个.简单易用,同时支持多种推荐算法.基础算法.协同过滤 ...
- Python推荐系统库--Surprise实战
一.使用movieLens数据集 from surprise import KNNBasic, SVD from surprise import Dataset from surprise impor ...
- python推荐系统库
Python推荐系统库——Surprise 在Python中实现你自己的推荐系统 python-recsys:一款实现推荐系统的python库
- python推荐淘宝物美价廉商品
完成的目标: 输入搜索的商品 以及 淘宝的已评价数目.店铺的商品描述(包括如实描述.服务态度.快递的5.0打分): 按要求,晒选出要求数量的结果,并按"物美价廉算法"排序后输出 思 ...
- python推荐淘宝物美价廉商品 2.0
改动: 新增功能 :可选择只看天猫或淘宝 代码模块化封装,参数配置或输入单独在一个py文件管理,主函数功能只留出参数传入在setting配置的py文件里. main.py代码: # -*- codin ...
- Python推荐算法学习1
1.闵可夫斯基距离 闵可夫斯基距离可以概括曼哈顿距离与欧几里得距离. 其中r越大,单个维度差值大小会对整体产生更大的影响.这个很好理解,假设当r=2时一个正方形对角线长度,永远是r=3时正方体对角线 ...
- python推荐书籍
推荐的python电子书 python学习路线图 优先级 入门:python核心编程 提高:python cookbook 其他 (1).数据分析师 需要有深厚的数理统计基础,但是对程序开发能力不做要 ...
- python 推荐算法
每个人都会有这样的经历:当你在电商网站购物时,你会看到天猫给你弹出的“和你买了同样物品的人还买了XXX”的信息:当你在SNS社交网站闲逛时,也会看到弹出的“你可能认识XXX“的信息:你在微博添加关注人 ...
- python并发编程-进程理论-进程方法-守护进程-互斥锁-01
操作系统发展史(主要的几个阶段) 初始系统 1946年第一台计算机诞生,采用手工操作的方式(用穿孔卡片操作) 同一个房间同一时刻只能运行一个程序,效率极低(操作一两个小时,CPU一两秒可能就运算完了) ...
随机推荐
- OVS-----CentOS7.2上安装OVS软件
1.安装依赖包: yum -y install make gcc openssl-devel autoconf automake rpm-build redhat-rpm-config yum -y ...
- cartographer 分析
原文链接:http://blog.csdn.net/zyh821351004/article/details/52421005 cartographer与karto的比较 1. 两者采取的都是图优化框 ...
- 【leetcode】657. Robot Return to Origin
Algorithm [leetcode]657. Robot Return to Origin https://leetcode.com/problems/robot-return-to-origin ...
- 876. Middle of the Linked List
1. 原始题目 Given a non-empty, singly linked list with head node head, return a middle node of linked li ...
- Latex 问题解决
1. 当bib文件中包含待引用的参考文献,并且在tex中正常通过\cite{}引用,却依然提示citation undefined,pdf中显示问号时,怎么解决报错. 解决:删除根目录下的 .bbl ...
- inception v1-v3 & Xception
inception v1-v3:通过多尺度卷积核学习不同尺度的空间信息并进行耦合:通过多个小卷积核来代替大卷积核的功能从而降低计算量: 通常,在一组特征图上进行卷积需要三维的卷积核,也即卷积核需要同时 ...
- Win10 开启移动热点 WiFi 的简单方法
原文地址:https://blog.csdn.net/u012318074/article/details/77162475 Win 10 开启移动热点 WiFi 的方法很简单,并不需要像网上那样还要 ...
- eclipse 迁移项目 乱码
eclipse 迁移项目总是乱码问题,网上解决都无非是把workspace.项目.文件等改成utf-8,但总是不好使,因为原来有的文件类型还是要改成原来的编码格式,可以使用文本工具如notepad打开 ...
- input修改placeholder文字颜色
少废话,上代码: <style> input::-webkit-input-placeholder{ color:red; } input::-moz-placeholder{ /* Mo ...
- 005_tcp/ip监控
system.monitor.tcpstat 一.listen+established+time wait+close wait. listen:SELECT mean("listen&qu ...