Comments (2)
I added this cell to the bottom of the notebook, but the TrainRequest object has a measure
field as a string.
train_request = TrainRequest.coordinate_ascent()
train_request.measure = 'map'
params = train_request.params
params.init_random = True
params.normalize = True
params.seed = 1234567
coordinate_ascent = dataset.train_model(train_request)
# simple python-accessible models (serialization is up to you)
coordinate_ascent.to_dict()
The supported measures are: AP, RR, and NDCG for now. I know ERR is pretty popular in LTR literature, but I've never really used it, myself, so that's why it's been on the backburner.
Lines 148 to 153 in b05cf8a
I don't have plans for user-defined functions as metrics, because most of the 'speed' of coordinate ascent comes from how fast you can predict new model scores, sort, and compute your metric, but it shouldn't be hard to add some additional measures.
from fastrank.
Ok, thanks for your answer.
from fastrank.
Related Issues (20)
- Python unittest assert improvements!
- Improve learning methods to support validation sets
- Someday: Travis deploys to pypi
- Support progress-bar for learning models! HOT 2
- Investigate ^C not passing through from python to rust with cffi HOT 1
- RandomForest models not reproducible
- Normalization as part of load-libsvm
- ranklib-cli.py
- Windows Support HOT 1
- pypi deploy tried on new branch? :( HOT 1
- making a dataset HOT 20
- py3.5 is dead
- colab hates new version HOT 1
- from_numpy documentation & support string qids
- eval API for python
- zero/one-based ranksvm files
- Support ERR and other metrics
- support for m1 macs HOT 6
- Try PyO3 and rust-numpy
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from fastrank.