isnowfy / ranklogistic

pairwise learning to rank with logistic regression

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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

License:MIT License


Languages

Language:Python 100.0%