### Download
There are two branches in this REPO. The `backup` branch is deprecated and used as backup. You can only clone this main branch by:
```
git clone -b main --single-branch https://github.com/namespace-Pt/News-Recommendation.git
```
### Instruction
1. Download **MIND** dataset [here](https://msnews.github.io/)
2. Save MIND dataset in a directory, e.g. `~/Data`
3. ```
pip install torch==1.9.1+cu111 -f https://download.pytorch.org/whl/torch_stable.html
```
4. Add your email information so that you can get an email every time the model is evaluated:
```bash
cd src
mkdir data
echo "email = 'your.gmail@gmail.com'" >> data/email.py
echo "password = 'your password'" >> data/email.py
```
5. ```bash
python -m main.twotower --data-root ~/Data \
--batch-size 8 \
--world-size 2 \
--news-encoder bert
```
- `--world-size` defines number of gpus in ddp training
- `--news-encoder` defines news encoder
- more parameters can be found in [src/utils/manager.py](src/utils/manager.py)
没有合适的资源?快使用搜索试试~ 我知道了~
新闻推荐调查_Python_Jupyter Notebook_下载.zip
共16个文件
py:13个
md:1个
ipynb:1个
1.该资源内容由用户上传,如若侵权请联系客服进行举报
2.虚拟产品一经售出概不退款(资源遇到问题,请及时私信上传者)
2.虚拟产品一经售出概不退款(资源遇到问题,请及时私信上传者)
版权申诉
0 下载量 131 浏览量
2023-04-23
09:50:04
上传
评论
收藏 28KB ZIP 举报
温馨提示
新闻推荐调查_Python_Jupyter Notebook_下载.zip
资源推荐
资源详情
资源评论
收起资源包目录
新闻推荐调查_Python_Jupyter Notebook_下载.zip (16个子文件)
News-Recommendation-main
src
dev.ipynb 10KB
utils
util.py 11KB
dataset.py 16KB
manager.py 20KB
models
FIM.py 2KB
TwoTower.py 321B
BaseModel.py 14KB
modules
encoder.py 15KB
attention.py 6KB
OneTowerBert.py 2KB
main
twotower.py 2KB
daemon.py 654B
onetower.py 1KB
fim.py 1KB
.gitignore 52B
README.md 1KB
共 16 条
- 1
资源评论
快撑死的鱼
- 粉丝: 1w+
- 资源: 9154
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功