没有合适的资源?快使用搜索试试~ 我知道了~
资源推荐
资源详情
资源评论
## 冷启动
冷启动就需要`user`或者`item`的特征来配合了, 仅使用协同过滤的FM模型是无法做到冷启动的.
我们选择[StackExchange dataset](https://archive.org/details/stackexchange)作为数据集, 这个数据集除了行为交互数据, 还有**item feature**, 因此可以做关于`item`的冷启动.
```python
import numpy as np
from lightfm.datasets import fetch_stackexchange
data = fetch_stackexchange('crossvalidated',
test_set_fraction=0.1,
indicator_features=False,
tag_features=True)
data
```
```
{'train': <3221x72360 sparse matrix of type ''
with 57830 stored elements in COOrdinate format>,
'test': <3221x72360 sparse matrix of type ''
with 4307 stored elements in COOrdinate format>,
'item_features': <72360x1246 sparse matrix of type ''
with 198963 stored elements in Compressed Sparse Row format>,
'item_feature_labels': array(['bayesian', 'prior', 'elicitation', ..., 'events', 'mutlivariate',
'sample-variance'], dtype='
点击阅读更多
资源评论
航知道
- 粉丝: 25
- 资源: 302
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功