From ed5e75de2fb9a2b30b6cb3f5fc95c1c53f679852 Mon Sep 17 00:00:00 2001 From: Denis M Korzhenkov Date: Wed, 29 Mar 2017 20:11:23 +0300 Subject: [PATCH] Nonreproducible sequence of evaluations fixed (#2153) As `num_round=2` there is no `0003.model` file after training. --- demo/binary_classification/README.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/demo/binary_classification/README.md b/demo/binary_classification/README.md index a3b0aa77d..665027880 100644 --- a/demo/binary_classification/README.md +++ b/demo/binary_classification/README.md @@ -97,15 +97,15 @@ lambda_bias = 0.01 #### Get Predictions After training, we can use the output model to get the prediction of the test data: ``` -../../xgboost mushroom.conf task=pred model_in=0003.model +../../xgboost mushroom.conf task=pred model_in=0002.model ``` For binary classification, the output predictions are probability confidence scores in [0,1], corresponds to the probability of the label to be positive. #### Dump Model This is a preliminary feature, so far only tree model support text dump. XGBoost can display the tree models in text files and we can scan the model in an easy way: ``` -../../xgboost mushroom.conf task=dump model_in=0003.model name_dump=dump.raw.txt -../../xgboost mushroom.conf task=dump model_in=0003.model fmap=featmap.txt name_dump=dump.nice.txt +../../xgboost mushroom.conf task=dump model_in=0002.model name_dump=dump.raw.txt +../../xgboost mushroom.conf task=dump model_in=0002.model fmap=featmap.txt name_dump=dump.nice.txt ``` In this demo, the tree boosters obtained will be printed in dump.raw.txt and dump.nice.txt, and the latter one is easier to understand because of usage of feature mapping featmap.txt