This project is implemented to do the pairwise learning to rank with logistic regression like ranksvm.
python lr.py train svmguide1.scale m1 50 0.001
python lr.py test svmguide1.t.scale m1 out.txt
This will show precision, recall, auc, accuracy.
pairwise learning to rank algorithm like svmrank
python rank.py train train.dat m1 50 0.1
python rank.py test test.dat m1 out.txt
This will show 1 Total number of swapped pairs summed over all queries. 2 Fraction of swapped pairs averaged over all queries.