Skip to content

Commit

Permalink
update doc
Browse files Browse the repository at this point in the history
  • Loading branch information
aksnzhy committed Oct 24, 2018
1 parent 26542d9 commit 549c7f3
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 1 deletion.
5 changes: 4 additions & 1 deletion cli_api/index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -379,7 +379,10 @@ Users can set the number of thread for xLearn by using ``-nthread`` option: ::

./xlearn_train ./small_train.txt -nthread 2

If you don't set this option, xLearn uses all of the CPU cores by default.
If you don't set this option, xLearn uses all of the CPU cores by default. xLearn will show the number of threads: ::

[------------] xLearn uses 2 threads for training task.
[ ACTION ] Read Problem ...

Users can disable lock-free training by using ``--dis-lock-free``: ::

Expand Down
5 changes: 5 additions & 0 deletions python_api/index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -456,6 +456,11 @@ Users can set the number of thread for xLearn by using ``nthread`` parameter: ::
ffm_model.fit(param, "./model.out")

xLearn will show the number of threads: ::

[------------] xLearn uses 4 threads for training task.
[ ACTION ] Read Problem ...

Users can also disable lock-free training by using ``disableLockFree()`` API: ::

import xlearn as xl
Expand Down

0 comments on commit 549c7f3

Please sign in to comment.