Comments (3)
As per #55
from spotlight.
Hello @maciejkula ,
First, thank you very much for implementing Spotlight. I am planning to use Spotlight for my further study.
I'd like to contribute by implementing AUC. Here is my plan for implementation with some questions;
-
We can create a precision-recall curve (axises are precision and recall) or we can create ROC curve (axises are true positive rate to false positive rate) (See ref1). I think the precision-recall curve is fine. What is your opinion?
-
We will use different k values (number of recommended items) to produce different points of the curve.
-
New evaluation metric will return a single result since AUC is a reduced result of curve graphs. I see that results (e.g. precision and recall) in Spotlight are generally arrays rather than single results. Do you think AUC metric should return an array or a single result?
-
We can calculate the area under the curve by using the Trapezoidal rule or Simpson's rule. By default, the metric will calculate the area by using Trapezoidal rule. Simpson's rule will be optional.
Trapezoidal rule: https://docs.scipy.org/doc/numpy/reference/generated/numpy.trapz.html
Simpson's rule: https://docs.scipy.org/doc/scipy/reference/generated/scipy.integrate.simps.html#scipy.integrate.simps
Do you think the plan is ok for implementation? Please let me know your comments.
Ref1 - Recommender Systems Handbook 2nd edition - 8.3.2.2 Measuring Usage Prediction
ps: we need to hit x=1 and y=1 values, since this metric is generally used to compare multiple algorithms.
from spotlight.
@mkarakaya,
You should contribute your idea! Here are my thoughts having helped out in the past on spotlight evaluation metrics:
- Yes prec-recall is fine
- Of course
- I asked the same question, and @maciejkula's response was as you guess -- an array. Personally, I would not be opposed to a single result however, in the case that integrating tons of AUCs were slow and could be sped up somehow by aggregating first.
- Sure
Also, have you considered a confusion matrix or at least F1-score?
Good luck!
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.