Skip to content

Commit

Permalink
FIX: bugs in test_command_line
Browse files Browse the repository at this point in the history
  • Loading branch information
guijiql committed Aug 31, 2021
1 parent dd3d7b6 commit 9f80803
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/python-package.yml
Original file line number Diff line number Diff line change
Expand Up @@ -55,5 +55,5 @@ jobs:
run: |
python -m pytest -v tests/config/test_config.py
export PYTHONPATH=.
python tests/config/test_command_line.py --use_gpu=False --valid_metric=Recall@10 --split_ratio=[0.7,0.2,0.1] --metrics=['Recall'] --topk=[10] --epochs=200 --eval_setting='LO_RS' --learning_rate=0.3
python tests/config/test_command_line.py --use_gpu=False --valid_metric=Recall@10 --split_ratio=[0.7,0.2,0.1] --metrics='["Recall"]' --topk=[10] --epochs=200 --eval_setting='LO_RS' --learning_rate=0.3
2 changes: 1 addition & 1 deletion docs/source/developer_guide/customize_metrics.rst
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ Set properties of the metric
-----------------------------
After that, we set the properties of metrics:

Set ``metric_head``
Set ``metric_need``
###################
It is a list that contains one or multiple string that corresponding to needed input of metrics.
For now, we support 9 inputs for metrics including both recommendation results and information of
Expand Down
2 changes: 1 addition & 1 deletion tests/config/run.sh
Original file line number Diff line number Diff line change
Expand Up @@ -4,5 +4,5 @@
python -m unittest

python test_command_line.py --use_gpu=False --valid_metric=Recall@10 --split_ratio=[0.7,0.2,0.1] \
--metrics=['Recall'] --topk=[10] \
--metrics='["Recall"]' --topk=[10] \
--epochs=200 --eval_setting='LO_RS' --learning_rate=0.3

0 comments on commit 9f80803

Please sign in to comment.