Giter Site home page Giter Site logo

Comments (7)

jfkirk avatar jfkirk commented on June 4, 2024

Hey @rragundez ! Could you clarify for me what you mean by "different actions"? What would some examples of different actions be?

I'm glad you're interested!

from tensorrec.

rragundez avatar rragundez commented on June 4, 2024

So, suppose I have two users which both are vegetarians, same age, like music etc. same preferences, same user features, but they have interacted with my content items differently. Since the actions get ingested in training time only for the loss function, at inference/prediction time both users get treated equally (since their features are the same)

Is this a bit clearer?

from tensorrec.

jfkirk avatar jfkirk commented on June 4, 2024

Much clearer, thank you!

In this case, you could provide personalization by adding an "indicator feature" - a one-hot-encoded feature that is unique to each user. Practically, I do this by appending an identity matrix (n_users, n_users) to my user metadata matrix.

You can read a bit more about using indicator features in a recommender system in section 2.3 of this paper: https://arxiv.org/pdf/1507.08439.pdf

Does that help?

from tensorrec.

rragundez avatar rragundez commented on June 4, 2024

I thought about that initially and I came up with a reason of why not to do it, but lost it now. Let me get back to you, I'll take a look at the paper, thanks a lot!

Another question, in your experience with this architecture how many user features and items features and actions would I need to get good results?

from tensorrec.

rragundez avatar rragundez commented on June 4, 2024

Wouldn't it be a problem that for example if I have 100,000 users and let's say only 10 user features? Seems to me that this would be a problem when calculating the embeddings.

from tensorrec.

jfkirk avatar jfkirk commented on June 4, 2024

The only issue with a large number of indicator features is the size of embeddings in memory. That said, I've routinely built systems with 4mm+ users with indicator features and metadata features without problems.

from tensorrec.

rragundez avatar rragundez commented on June 4, 2024

great thanks! I'll try it out.

from tensorrec.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.