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.

question: new user_interactions

See original GitHub issue

Hi and thanks for the great project, may be the question was already here but i can not find it . I whold like to implement prediction for some new user with some known interactions on known products . Currently all model functions accept user_features item_features which are identity matrixes for the simple case :

I can extract the info for some existing user :

model.predict(user_features=user_features[75], item_features=item_features[100:103]) but i can not do something like this:

model.predict(user_features=zero vector , item_features=item_features, user_interactions = [
0 0 0 ... 1 ... 1 
] )

for the new customer that likes 2 products.

Issue Analytics

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

github_iconTop GitHub Comments

1reaction
jfkirkcommented, Mar 22, 2019

Hey @martende – you shouldn’t need to normalize the synthetic user_representation because the vector’s magnitude is irrelevant when ranking. If you normalized it, you’d get the same ranking back. If you care about the precise predicted values, though, then you may want to normalize.

You also may want to explore weighting the inputs, though. If one interaction has weight 3 and another interaction has weight 5 you can to multiply those item reprs by a scalar weight before summing them so the interaction with higher weight has a bigger impact on the resulting user repr.

0reactions
Jyang772commented, Apr 18, 2019

Thanks @jfkirk,

Do you mean that I can construct new user_representation just as a sum of all item_representations for all interactions without any norming at the end ? I have got this intuition but i have no idea why it should work.

I have seen that implicit https://github.com/benfred/implicit project is solving some linear equation for construction user representation for some straitforvard SVD prediction .

Hi @jfkirk, could you explain why the new predicted user representation is the sum of the predicted item representations of items the new user has interacted with?

synthetic_user_repr = sum(interacted_item_reprs)

I don’t follow.

Read more comments on GitHub >

github_iconTop Results From Across the Web

The Best User Research Questions (+ How to Ask Them) - Maze
Our final question-crafting tip is to use research questions to test and validate your own assumptions and opinions. Ask questions you think you ......
Read more >
98 Questions UX Designers Must Ask | by Spire Digital
User Research · What does your typical weekday look like? · Tell me about your role at your company. · What are your...
Read more >
User Experience(UX) Survey Questions: 60+ Examples (+ ...
User experience survey questions help you get valuable feedback from your users and improve your app's user interface and experience.
Read more >
User Research – Meaningful Questions | IxDF
Are we learning anything here? · Now we've learned X about the topic; should we revisit our objectives and change them? · Have...
Read more >
User Research Questions You Should Be Asking - Fuel Cycle
Best practices for creating user research questions · 1. Start by defining broader themes · 2. Break down your questions to make them...
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