xgboost/demo/regression/runexp.sh
2014-03-27 00:08:47 +08:00

11 lines
492 B
Bash

#!/bin/bash
# map the data to features. For convenience we only use 7 original attributes and encode them as features in a trivial way
python mapfeat.py
# split train and test
python mknfold.py machine.txt 1
# training and output the models
../../xgboost machine.conf
# output predictions of test data
../../xgboost machine.conf task=pred model_in=0003.model
# print the boosters of 00003.model in dump.raw.txt
../../xgboost machine.conf task=dump model_in=0003.model name_dump=dump.raw.txt