File tree Expand file tree Collapse file tree 2 files changed +4
-2
lines changed Expand file tree Collapse file tree 2 files changed +4
-2
lines changed Original file line number Diff line number Diff 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
Original file line number Diff line number Diff line change @@ -61,7 +61,7 @@ os : windows/linux/macos
6161# 动态图训练
6262python -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# 静态图训练
6767python -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
86861 . 确认您当前所在目录为PaddleRec/models/recall/ncf
87872 . 进入paddlerec/datasets/movielens_pinterest_NCF目录下,执行该脚本,会从国内源的服务器上下载我们预处理完成的movielens和pinterest全量数据集,并解压到指定文件夹。
88+
8889``` bash
8990cd ../../../datasets/movielens_pinterest_NCF
9091sh run.sh
9192```
92933 . 切回模型目录,执行命令运行全量数据
94+
9395``` bash
9496cd - # 切回模型目录
9597# 动态图训练并得到指标(这里需要使用bash启动脚本)
You can’t perform that action at this time.
0 commit comments