Skip to content

Commit

Permalink
0.4.0 release
Browse files Browse the repository at this point in the history
  • Loading branch information
aksnzhy committed Nov 22, 2018
1 parent 042bf14 commit 6e45987
Show file tree
Hide file tree
Showing 5 changed files with 35 additions and 5 deletions.
2 changes: 2 additions & 0 deletions doc/api_list.rst
Expand Up @@ -35,6 +35,8 @@ Options: ::
-m <model_file> : Path of the model dump file. On default, the model file name is 'train_file' + '.model'.
If we set this value to 'none', the xLearn will not dump the model checkpoint.

-pre <pre-model> : Path of the pre-trained model. This can be used for online learning.

-t <txt_model_file> : Path of the TEXT model checkpoint file. On default, we do not set this option
and xLearn will not dump the TEXT model.
Expand Down
8 changes: 8 additions & 0 deletions doc/command_line.rst
Expand Up @@ -132,6 +132,14 @@ FFM: ::
v_3_2: 0.109711 0.102996 0.227222 0.248076
v_3_3: 0.144264 0.0409806 0.17463 0.083712

Online Learning
----------------------------------------
xLearn can supoort online learning, which can train new data based on the pre-trained model. User can use the ``-pre`` option to specify the file path of pre-trained model. For example: ::

./xlearn_train ./small_train.txt -s 0 -pre ./pre_model

Note that, xLearn can only uses the binary model, not the TXT model.

Prediction Output
----------------------------------------

Expand Down
11 changes: 8 additions & 3 deletions doc/news.md
@@ -1,9 +1,14 @@
## What's New

- 2018-11-22 xLearn 0.4.0 version release. Main update:

* Fix bugs in previous version
* Add online learning for xLearn

- 2018-11-10 xLearn 0.3.8 version release. Main update:

* Fix bugs in previous version.
* Update early-stop mechanism.
* Fix bugs in previous version.
* Update early-stop mechanism.

- 2018-11-08. xLearn gets 2000 star! Congs!

Expand Down Expand Up @@ -50,4 +55,4 @@
* New Documents
* Faster FTRL algorithm

- 2017-11-24 The first version (0.1.0) of xLearn release !
- 2017-11-24 The first version (0.1.0) of xLearn release !
18 changes: 17 additions & 1 deletion doc/python_package.rst
Expand Up @@ -18,7 +18,7 @@ If you install xLearn Python package successfully, you will see: ::
> <| |___| __/ (_| | | | | | |
/_/\_\_____/\___|\__,_|_| |_| |_|

xLearn -- 0.38 Version --
xLearn -- 0.40 Version --
-------------------------------------------------------------------------

Quick Start
Expand Down Expand Up @@ -186,6 +186,22 @@ FFM: ::
v_3_2: 0.109711 0.102996 0.227222 0.248076
v_3_3: 0.144264 0.0409806 0.17463 0.083712

Online Learning
----------------------------------------
xLearn can supoort online learning, which can train new data based on the pre-trained model. User can use the ``setPreModel`` API to specify the file path of pre-trained model. For example: ::

import xlearn as xl

ffm_model = xl.create_ffm()
ffm_model.setTrain("./small_train.txt")
ffm_model.setValidate("./small_test.txt")
ffm_model.setPreModel("./pre_model")
param = {'task':'binary', 'lr':0.2, 'lambda':0.002}
ffm_model.fit(param, "./model.out")

Note that, xLearn can only uses the binary model, not the TXT model.

Choose Machine Learning Algorithm
----------------------------------------

Expand Down
1 change: 0 additions & 1 deletion src/solver/checker.cc
Expand Up @@ -67,7 +67,6 @@ std::string Checker::option_help() const {
not dump the model checkpoint after training.
-pre <pre-model> : Path of the pre-trained model. This can be used for online learning.
(Under developing)
-t <txt_model_file> : Path of the txt model checkpoint file. On default, this option is empty
and xLearn will not dump the txt model.
Expand Down

0 comments on commit 6e45987

Please sign in to comment.