Skip to content

Commit dfac5f8

Browse files
authored
Group CLI demo into subdirectory. (#6258)
CLI is not most developed interface. Putting them into correct directory can help new users to avoid it as most of the use cases are from a language binding.
1 parent 6383757 commit dfac5f8

32 files changed

+143
-97
lines changed
File renamed without changes.
File renamed without changes.
File renamed without changes.

demo/binary_classification/mushroom.conf renamed to demo/CLI/binary_classification/mushroom.conf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ max_depth = 3
1818
# the number of round to do boosting
1919
num_round = 2
2020
# 0 means do not save any model except the final round model
21-
save_period = 0
21+
save_period = 2
2222
# The path of training data
2323
data = "agaricus.txt.train"
2424
# The path of validation data, used to monitor training process, here [test] sets name of the validation set
Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -3,13 +3,15 @@
33
python mapfeat.py
44
# split train and test
55
python mknfold.py agaricus.txt 1
6+
7+
XGBOOST=../../../xgboost
8+
69
# training and output the models
7-
../../xgboost mushroom.conf
8-
# output prediction task=pred
9-
../../xgboost mushroom.conf task=pred model_in=0002.model
10+
$XGBOOST mushroom.conf
11+
# output prediction task=pred
12+
$XGBOOST mushroom.conf task=pred model_in=0002.model
1013
# print the boosters of 00002.model in dump.raw.txt
11-
../../xgboost mushroom.conf task=dump model_in=0002.model name_dump=dump.raw.txt
14+
$XGBOOST mushroom.conf task=dump model_in=0002.model name_dump=dump.raw.txt
1215
# use the feature map in printing for better visualization
13-
../../xgboost mushroom.conf task=dump model_in=0002.model fmap=featmap.txt name_dump=dump.nice.txt
16+
$XGBOOST mushroom.conf task=dump model_in=0002.model fmap=featmap.txt name_dump=dump.nice.txt
1417
cat dump.nice.txt
15-
File renamed without changes.

0 commit comments

Comments
 (0)