chg scripts
This commit is contained in:
parent
02cefb8f1b
commit
8a0f8a93c7
@ -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
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
@ -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
2
demo/rank/runexp.sh
Normal file → Executable 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
4
demo/rank/wgetdata.sh
Executable 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 .
|
||||
Loading…
x
Reference in New Issue
Block a user