Skip to content

Commit 623e14d

Browse files
authored
Merge pull request #391 from yinhaofeng/ncf
Ncf
2 parents 26ef070 + f7caf1d commit 623e14d

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

models/recall/ncf/config.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ runner:
2424

2525
test_data_dir: "data/test"
2626
infer_reader_path: "movielens_reader" # importlib format
27-
infer_batch_size: 5
27+
infer_batch_size: 1
2828
infer_load_path: "output_model_ncf"
2929
infer_start_epoch: 2
3030
infer_end_epoch: 3

models/recall/ncf/readme.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ os : windows/linux/macos
6161
# 动态图训练
6262
python -u ../../../tools/trainer.py -m config.yaml # 全量数据运行config_bigdata.yaml
6363
# 动态图预测
64-
python -u infer.py -m config.yaml
64+
python -u ../../../tools/infer.py -m config.yaml
6565

6666
# 静态图训练
6767
python -u ../../../tools/static_trainer.py -m config.yaml # 全量数据运行config_bigdata.yaml
@@ -85,11 +85,13 @@ python -u ../../../tools/static_infer.py -m config.yaml
8585

8686
1. 确认您当前所在目录为PaddleRec/models/recall/ncf
8787
2. 进入paddlerec/datasets/movielens_pinterest_NCF目录下,执行该脚本,会从国内源的服务器上下载我们预处理完成的movielens和pinterest全量数据集,并解压到指定文件夹。
88+
8889
``` bash
8990
cd ../../../datasets/movielens_pinterest_NCF
9091
sh run.sh
9192
```
9293
3. 切回模型目录,执行命令运行全量数据
94+
9395
```bash
9496
cd - # 切回模型目录
9597
# 动态图训练并得到指标(这里需要使用bash启动脚本)

0 commit comments

Comments
 (0)