Skip to content

isnowfy/ranklogistic

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Ranklogistic

This project is implemented to do the pairwise learning to rank with logistic regression like ranksvm.

logistic Regression

Format

libsvm format

Usage

Train

python lr.py train svmguide1.scale m1 50 0.001

Predict

python lr.py test svmguide1.t.scale m1 out.txt

This will show precision, recall, auc, accuracy.

Ranklogistic

pairwise learning to rank algorithm like svmrank

Format

ranksvm format

Usage

Train

python rank.py train train.dat m1 50 0.1

Predict

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.

About

pairwise learning to rank with logistic regression

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages