-
Notifications
You must be signed in to change notification settings - Fork 6
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Optimizing CA model toward different metrics #46
Comments
I added this cell to the bottom of the notebook, but the TrainRequest object has a 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. |
Ok, thanks for your answer. |
Hi everyone,
I've a question regarding running Coordinate Ascent. I noticed from the colab file https://colab.research.google.com/drive/1IjF7yTin1XaNO_6mBNxAoQYTmF0nckk1 that the model is trained using NDCG. Is it possible to train the model using a user-defined metric? Or how can we make the model optimize for different metrics, e.g. MAP or ERR?
Thanks!
The text was updated successfully, but these errors were encountered: