chg scripts

This commit is contained in:
tqchen 2014-05-16 18:46:43 -07:00
parent 02cefb8f1b
commit 8a0f8a93c7
4 changed files with 16 additions and 4 deletions

View File

@ -1,4 +1,13 @@
Instructions:
The dataset for ranking demo is from LETOR04 MQ2008 fold1,
http://research.microsoft.com/en-us/um/beijing/projects/letor/letor4download.aspx
You can use the following command to run the example
Get the data: ./wgetdata.sh
Run the example: ./runexp.sh

View File

@ -2,6 +2,7 @@
# choose the tree booster, 0: tree, 1: linear
booster_type = 0
# so far, we have pairwise rank
objective="rank:pairwise"
# Tree Booster Parameters

2
demo/rank/runexp.sh Normal file → Executable file
View File

@ -1,7 +1,5 @@
python trans_data.py train.txt mq2008.train mq2008.train.group
python trans_data.py test.txt mq2008.test mq2008.test.group
python trans_data.py vali.txt mq2008.vali mq2008.vali.group
../../xgboost mq2008.conf

4
demo/rank/wgetdata.sh Executable file
View File

@ -0,0 +1,4 @@
#!/bin/bash
wget http://research.microsoft.com/en-us/um/beijing/projects/letor/LETOR4.0/Data/MQ2008.rar
unrar x MQ2008.rar
mv -f MQ2008/Fold1/*.txt .