Comments (3)
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.
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
- generate_dummy_data
- train a model
- 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.
Thank you so much for sharing this, I will go through this example!!
from allrank.
Related Issues (20)
- How to run "run_example.sh" HOT 3
- Which loss functions are suitable for sentence ordering? HOT 1
- Transformer implementation seemingly not corresponding to paper HOT 3
- Location of loss functions?? HOT 2
- Forward vs Backward Slash in Path definition HOT 3
- AssertionError: val ndcg_5 got 0.7586661577224731. It was expected to be at least 0.76 HOT 2
- Getting started without Docker HOT 1
- How to get predictions from the model? HOT 5
- How to use your own dataset? HOT 2
- How to get predictions for each observation or row in my data. HOT 7
- Whats the expected input to the losses and metrics? HOT 1
- How to produce predictions? HOT 9
- How to produce predictions?
- My experiments consistently underperform in comparison to the paper's reported results. HOT 2
- Any sources for the click model based relabeling mentioned in the readme HOT 2
- About the padding value HOT 2
- RuntimeError Numpy not available HOT 1
- Embeddings
- Question about positional encoding HOT 2
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 allrank.