question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Difference between Hybrid CF Model and Learning-to-Rank Model

See original GitHub issue

Hi,

I’m a little confused when looking at the examples in the documentation. What is the difference between the Hybrid and Learning-to-Rank models implemented here?

From the documentation, a Hybrid model is defined by:

model = LightFM(loss='warp',
                item_alpha=ITEM_ALPHA,
                no_components=NUM_COMPONENTS)

A Learning-to-Rank model is defined by:

warp_model = LightFM(no_components=num_components,
                    loss='warp',
                    learning_schedule='adagrad',
                    max_sampled=100,
                    user_alpha=alpha,
                    item_alpha=alpha)

The default lightFM model is:

LightFM(no_components=10, k=5, n=10, learning_schedule=’adagrad’, 
loss=’logistic’, learning_rate=0.05, rho=0.95, epsilon=1e-06, item_alpha=0.0, 
user_alpha=0.0, max_sampled=10, random_state=None)

I’m having trouble seeing a difference between both models. Does LightFM differentiate between the Hybrid CF and Learning-to-Rank? How do I make sure the model that I’m creating is a Hybrid model or a Learning-to-Rank model?

Would appreciate any advice on this. Thank you!

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:7

github_iconTop GitHub Comments

4reactions
maciejkulacommented, Jun 11, 2019
  1. If use use the warp or bpr losses, your model is a learning-to-rank model.
  2. If you have any features in your item or user feature matrices (other than the identity features per item/user), your model is a hybrid model.
0reactions
SimonCWcommented, Jan 24, 2021

I’m closing this issue because it has been inactive for a long time. If you still encounter the problem, please open a new issue.

Thank you!

Read more comments on GitHub >

github_iconTop Results From Across the Web

(PDF) Learning to rank for hybrid recommendation
Hybrid recommender systems combine the advantages of the two for improved recommendation performance. Traditional recommender systems are rating ...
Read more >
Personalized Restaurant Recommender System Using A ...
In this paper, we explored the potentials of adopting a hybrid approach to build a personalized restaurant recommender system using Yelp's ...
Read more >
An efficient hybrid recommendation model based on ...
The model-based CF model is scalable and can handle higher sparsity than the memory-based method, but when users or items without any ratings ......
Read more >
Cascading Hybrid Bandits: Online Learning to Rank for ...
We propose a hybrid contextual bandit approach, called. CascadeHybrid, for solving this problem. CascadeHybrid models item relevance and topical diversity ...
Read more >
A Hybrid Collaborative Filtering Model with Deep Structure ...
Traditional CF-based methods employ the user-item matrix which encodes the individual preferences of users for items for learning to make recommendation. In ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found