Getting recommendation for a new user

10 views
Skip to first unread message

pierre-henri

unread,
Nov 28, 2018, 6:36:39 AM11/28/18
to MyMediaLite
Hi,

Imagine you have trained a recommender with a corpus of (user, item)...for instance with ItemKNN recommender..then saving the model.
Now you want to have a recommendation for new user (who does not belong to the training set) but who have watched/liked items belongng to your training set (you have the histor of the user :logs like new (user, item)...)

How do you get recommendation with mymedialite for this new user (taking into account his history)

BR

Zeno Gantner

unread,
Nov 28, 2018, 9:48:27 AM11/28/18
to mymed...@googlegroups.com
Hello,

no user history means no personalization for that user.

You could return the most popular items, maybe a bit randomized.

Cheers,
   Z.

--
You received this message because you are subscribed to the Google Groups "MyMediaLite" group.
To unsubscribe from this group and stop receiving emails from it, send an email to mymedialite...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

pierre-henri

unread,
Dec 4, 2018, 5:40:44 AM12/4/18
to MyMediaLite
Hello,

This user has a history.
The model saved had been trained for instance for userid from 1 to 1000. Now comes the user 1001 with an history (a list of items) , how can I user the model saved to make prediction ?
Of course the items of this user's history belong to the set of Items on which the recommender has been trained.

BR

pierre-henri

unread,
Dec 4, 2018, 10:00:23 AM12/4/18
to MyMediaLite
By browsing the Q&A, I have found that I want is following:

"What you want is a technique called fold-in:
Given the model and a new user and his interactions, compute
recommendations for that user. It is already supported in MyMediaLite
for rating prediction (see the discussion in this group earlier this
year).
For item recommendation, there is already an interface defined, but
none of the recommenders implement the interface:
https://github.com/zenogantner/MyMediaLite/blob/master/src/MyMediaLite/ItemRecommendation/IFoldInItemRecommender.cs

If we know that it is a desired feature, it will get higher priority.
On the other hand, contributions in this area are also welcome ;-)"

Is it implemented  for item_recommendation (on command line)?

BR

Zeno Gantner

unread,
Dec 4, 2018, 12:13:11 PM12/4/18
to mymed...@googlegroups.com
Gotcha, sorry for mis-reading your prior e-mail.

This is supported, and called fold-in.
See the IFoldInItemRecommender interface.

https://github.com/zenogantner/MyMediaLite/blob/master/src/MyMediaLite/ItemRecommendation/IFoldInItemRecommender.cs

Cheers,
Z.

Zeno Gantner

unread,
Dec 4, 2018, 12:15:11 PM12/4/18
to mymed...@googlegroups.com
Not implemented for the command-line tool.

You'd need to code it yourself, either standalone, or add it to the
command line tool.

Cheers,
Z.
Reply all
Reply to author
Forward
0 new messages