remove test directory
This commit is contained in:
@@ -1,5 +1,4 @@
|
||||
example of training a binary classifier on UCI dataset
|
||||
http://archive.ics.uci.edu/ml/datasets/Mushroom
|
||||
Demonstrating how to use XGBoost accomplish binary classification tasks on UCI mushroom dataset http://archive.ics.uci.edu/ml/datasets/Mushroom
|
||||
|
||||
Run: ./runexp.sh
|
||||
|
||||
|
||||
@@ -1,18 +1,17 @@
|
||||
num_round=2
|
||||
|
||||
save_period=0
|
||||
|
||||
data = "agaricus.txt.train"
|
||||
eval[test] = "agaricus.txt.test"
|
||||
test:data = "agaricus.txt.test"
|
||||
|
||||
|
||||
# General Parameters
|
||||
booster_type = 0
|
||||
loss_type = 2
|
||||
|
||||
# Tree Booster Parameters
|
||||
bst:tree_maker=2
|
||||
|
||||
bst:eta=1.0
|
||||
bst:gamma=1.0
|
||||
bst:min_child_weight=1
|
||||
bst:max_depth=3
|
||||
|
||||
# Binary Classification Parameters
|
||||
num_round=2
|
||||
save_period=0
|
||||
data = "agaricus.txt.train"
|
||||
eval[test] = "agaricus.txt.test"
|
||||
test:data = "agaricus.txt.test"
|
||||
@@ -3,10 +3,12 @@
|
||||
python mapfeat.py
|
||||
# split train and test
|
||||
python mknfold.py agaricus.txt 1
|
||||
# training
|
||||
# training and output the models
|
||||
../../xgboost mushroom.conf
|
||||
# this is what dump will looklike without feature map
|
||||
# output prediction task=pred
|
||||
../../xgboost mushroom.conf task=pred model_in=0003.model
|
||||
# print the boosters of 00003.model in dump.raw.txt
|
||||
../../xgboost mushroom.conf task=dump model_in=0003.model name_dump=dump.raw.txt
|
||||
# this is what dump will looklike with feature map
|
||||
# use the feature map in printing for better visualization
|
||||
../../xgboost mushroom.conf task=dump model_in=0003.model fmap=featmap.txt name_dump=dump.nice.txt
|
||||
cat dump.nice.txt
|
||||
|
||||
Reference in New Issue
Block a user