Comments (6)
It's not necessarily incorrect, but I can see why you might want to do it differently.
Could you make a PR that keeps the current code as default, but allows the alternative as an option? You could pass a mode
argument that's either mean
or min
.
from spotlight.
elanmart, I think worst case you can make a fix on repository you forked and share it here, I would also love to see it
from spotlight.
Hi @elanmart, are you still interested in contributing this option?
from spotlight.
Oh, yes, sorry. I'll submit the PR ASAP.
from spotlight.
Can I bump this. I really think that all literature discusses reciprocal rank as a per-user measure (per-query for information retrieval), and the average is taken across users. For instance, in the Croft book page 319, "reciprocal rank... is defined as the reciprocal of the rank at which the first relevant document is retrieved"
Therefore .min() should be the default.
Taking the .mean() is more similar of the reciprocal ranks is, in an adhoc way, to Mean Average Precision, and should be deprecated in favour of that.
Happy to contribute a PR. My own implementation also supports rank cutoffs and not dropping users with no relevant test items, but setting them to 0 in the array.
from spotlight.
bump
from spotlight.
Related Issues (20)
- Spotlight not working with Python 3.7 ? HOT 5
- Does spotlight have tensorboard integration? HOT 1
- Evaluation schema
- Loss improves super slowly after first epoch in LSTM based sequential model.
- Does spotlight include 'iMF' by Hu Yifan? HOT 1
- Hyper parameter tuning HOT 1
- How to predict in sequential models ? HOT 3
- Fix simple typo: predicition -> prediction
- Fix simple typo: siginficant -> significant
- Importing data directly from a Sparse Matrix
- is sequence model only a function of item sequence?
- classification : synthetic unbalanced data generating
- generate not sequential data by spotlight.datasets.synthetic.generate_sequential
- Where to find the code for the experiments around casual convolutions? HOT 1
- why don't we need to take logarithm in pointwise_loss?
- Error in BPR loss function
- How can I train a model when adding a new user or item?
- ModuleNotFoundError: No module named "spotlight.interactions" HOT 2
- Is there guide to use models for "retrieval stage" (namely candidate generation) ?
- Cannot install from conda HOT 1
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 spotlight.