GithubHelp home page GithubHelp logo

How to get prediction score about allrank HOT 3 OPEN

allegro avatar allegro commented on July 28, 2024
How to get prediction score

from allrank.

Comments (3)

niccola-tartaglia avatar niccola-tartaglia commented on July 28, 2024

Another post #44 has mentioned the use of the score function, but I don't understand how to use this from the main script after a model has been trained.

from allrank.

kretes avatar kretes commented on July 28, 2024

Here is a colab showing the usage of allrank for getting scores for a dataset.

https://colab.research.google.com/drive/1YqtomZ1KI09mOeNDhHTpae-7HRi5Lyh_?usp=sharing

It is basically run of

  1. generate_dummy_data
  2. train a model
  3. score a dataset using a model

parts 1 & 2 are the same as what happens in https://github.com/allegro/allRank/blob/master/scripts/run_example.sh

part 3 is adaptation of

https://github.com/allegro/allRank/blob/master/allrank/rank_and_click.py
and
https://github.com/allegro/allRank/blob/master/allrank/inference/inference_utils.py
to just do scoring and return.

It currently requires a normal dataset (with Y values, since they are used for masking), even though for inference we one shouldn't be forced to provide Y_true

@niccola-tartaglia LMK if that helps!

from allrank.

niccola-tartaglia avatar niccola-tartaglia commented on July 28, 2024

Thank you so much for sharing this, I will go through this example!!

from allrank.

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.