GithubHelp home page GithubHelp logo

slow WARP evaluation about lightfm HOT 4 CLOSED

lyst avatar lyst commented on August 19, 2024
slow WARP evaluation

from lightfm.

Comments (4)

maciejkula avatar maciejkula commented on August 19, 2024

I've opened #64 which adds a bunch of optimized evaluation functions, please have a look and see if they help.

In general, evaluating learning-to-rank metrics is expensive because you have to compute the full set of recommendations for every user. If you still find it prohibitively slow I would advise choosing a smaller test set by randomly sampling from your users.

@seanlaw you might find this useful too.

from lightfm.

seanlaw avatar seanlaw commented on August 19, 2024

@maciejkula I was already subscribed for notifications to this issue :)

from lightfm.

bejjani avatar bejjani commented on August 19, 2024

Great, thanks!
How are the hyperparameters tuned (step size, regularization)?
I am thinking of using the same rank estimation approach as in WARP when computing the loss on the validation set to let it scale (specially when doing grid search + CV)

from lightfm.

maciejkula avatar maciejkula commented on August 19, 2024

I'd just use the ranking metric score on the validation set. Especially for WARP watching validation loss (as in neural networks) is not the best approach because the algorithms selects more difficult examples the better it gets, so your raw loss values would be all over the place.

I'd also suggest random search or hyperopt for hyperparams search, but that's up to you :)

from lightfm.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.