remove test directory

This commit is contained in:
kalenhaha
2014-03-23 00:05:46 +08:00
parent ca74cba9ec
commit 3123d11655
14 changed files with 21 additions and 8526 deletions

View File

@@ -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

View File

@@ -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"

View File

@@ -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