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.

Roadmap: Hybrid Recommender?

See original GitHub issue

Hi, I was looking at LightFM and saw item and user metadata being used for recommendations. This is really cool. Just wondering if such functionality is in the roadmap for spotlight?

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Comments:5 (2 by maintainers)

github_iconTop GitHub Comments

5reactions
maciejkulacommented, Dec 10, 2017

You can do this right now by constructing your representation layers in the right way.

For example, you can create an item representation layer that stores item metadata, then use the item indices passed into it during training to retrieve the metadata and return its representation as part of the item representation.

For example, you could write something like this:

class FeatureLayer(nn.Module):

    def __init__(self, features, hidden_dim=32):

        super(FeatureLayer, self).__init__()

        self._hidden_dim = hidden_dim
        self._feature_dim = features.shape[1]
        self._features = Variable(torch.from_numpy(features.astype(np.float32)))
        self._hidden = nn.Linear(self._feature_dim, self._hidden_dim)

    def forward(self, item_indices):

        batch_size, sequence_length = item_indices.size()

        # Flatten the indices
        features = self._features[item_indices.resize(batch_size * sequence_length)]

        # Apply any transformation layers
        features = self._hidden(features)

        # Reshape again into (minibatch, sequence, embedding)
        features = features.resize(batch_size, sequence_length, self._hidden_dim)

        return features
1reaction
nikisixcommented, Sep 6, 2018

@maciejkula Think it might be worth throwing some logic around this idea? Might be a good way to help the sequence models with cold-starting right?

Read more comments on GitHub >

github_iconTop Results From Across the Web

A hybrid recommender-system for startup scouting.
Implementing a hybrid recommender-system to assist startup scouting ... 10.1 Roadmap for incorporating more steps in the scouting process.
Read more >
Microsoft 365 Roadmap
The Microsoft 365 Roadmap lists updates that are currently planned for applicable subscribers. ... Customers will be able to see Security recommendations, ...
Read more >
A Comprehensive Guide on Recommendation Engines and ...
This guide entails with different kinds of implementation that you could learn with respect to recommendation engines.
Read more >
(PDF) A novel approach for hybrid recommendation systems
Companies using recommendation systems focus on increasing sales, as a result of very personalized offers and an enhanced customer experience.
Read more >
Course Roadmap - Sundog Education with Frank Kane
Course Roadmap. Back to: Building Recommender Systems with Machine Learning and AI. Video Player ... Exercise Solution: Hybrid Recommenders. Wrapping Up.
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