当前位置:
首页 >
基于用户的推荐算法
发布时间:2024/1/18
35
豆豆
| 基于用户(项目)协同过滤
输入:训练集用户列表U,训练集电影列表I,评分矩阵R,邻居数目K,测试集用户列表UT 输出:给每位用户(共计N位用户)产生一个推荐列表,其中包含M部电影
|
| UCF: Start: //构建用户相似度矩阵 For user For query Calculate sim(ux,uy) End for End for
//使用计算好的用户相似度 构建用户相似度矩阵SM //推荐流程 For user and //找到用户向量 Forming user vector with each row of R expressing the watching list of user , containing movies //选择K位邻居 Select K users as the neighbors of with whose is bigger than other inS |