3 Star 57 Fork 12

wyz / 电影推荐系统

Create your Gitee Account
Explore and code with more than 12 million developers,Free private repositories !:)
Sign up
This repository doesn't specify license. Please pay attention to the specific project description and its upstream code dependency when using it.
Clone or Download
contribute
Sync branch
Cancel
Notice: Creating folder will generate an empty file .keep, because not support in Git
Loading...
README
基于内容的推荐:
1.将电影的类型作为one-hot向量,将用户评价过的电影的向量相加
(或者根据用户的评分进行加权求和),得到用户画像向量。

2.将所有用户没有评价过的电影与用户的画像向量进行余弦相似度计算,
将前n名推荐出去,这里我将n设置为10。


基于融合的推荐:
1.由于基于物品的CF与基于内容的推荐有一定的相似性,故我选择将
基于用户的CF与基于内容的推荐进行融合。

2.分别使用两种推荐方法推荐n个,共2n个。

3.抽取训练集:将用户评价过的电影的标签设置为1,从用户未评价过的
电影随机选出数量相同的一部分,将其标签设置为0,这样就构成了训练集。

4.训练LogisticRegression分类器,对2n个推荐电影进行预测,选出概率
最大的n个电影。


补充说明:
这里用平均流行度的倒数来表示新颖度。

Empty file

About

[2020.3 - 2020.6]使用movieLens数据集, 分别用基于用户的CF, 基于物品的CF, 基于内容的方法进行推荐, 最后用融合推荐的方法, 将不同算法推荐的结果结合起来, 训练LR分类器, 得到新的推荐列表。 expand collapse
Python
Cancel

Releases

No release

Contributors

All

Activities

Load More
can not load any more
Python
1
https://gitee.com/earth_wyz/movieRS.git
git@gitee.com:earth_wyz/movieRS.git
earth_wyz
movieRS
电影推荐系统
master

Search