Skip to content

Commit

Permalink
update doc
Browse files Browse the repository at this point in the history
  • Loading branch information
aksnzhy committed Sep 15, 2018
1 parent 037ffd2 commit ee584fb
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
6 changes: 3 additions & 3 deletions cli_api/index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -195,12 +195,12 @@ can use the ``--cv`` option to use this technique. For example: ::

./xlearn_train ./small_train.txt --cv

On default, xLearn uses 5-folds cross validation, and users can set the number of fold by using
On default, xLearn uses 3-folds cross validation, and users can set the number of fold by using
``-f`` option: ::
./xlearn_train ./small_train.txt -f 3 --cv
./xlearn_train ./small_train.txt -f 5 --cv

Here we set the number of folds to ``3``. The xLearn will calculate the average validation loss at
Here we set the number of folds to ``5``. The xLearn will calculate the average validation loss at
the end of its output message: ::

...
Expand Down
6 changes: 3 additions & 3 deletions python_api/index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -237,18 +237,18 @@ this technique. For example: ::
ffm_model.cv(param)

On default, xLearn uses 5-folds cross validation, and users can set the number of fold by
On default, xLearn uses 3-folds cross validation, and users can set the number of fold by
using the ``fold`` parameter: ::

import xlearn as xl

ffm_model = xl.create_ffm()
ffm_model.setTrain("./small_train.txt")
param = {'task':'binary', 'lr':0.2, 'lambda':0.002, 'fold':3}
param = {'task':'binary', 'lr':0.2, 'lambda':0.002, 'fold':5}
ffm_model.cv(param)

Here we set the number of folds to ``3``. The xLearn will calculate the average validation loss at the
Here we set the number of folds to ``5``. The xLearn will calculate the average validation loss at the
end of its output message: ::

[------------] Average log_loss: 0.549758
Expand Down

0 comments on commit ee584fb

Please sign in to comment.