turicreate icon indicating copy to clipboard operation
turicreate copied to clipboard

Item Content Recommender - Recommend from Interactions

Open dogahe opened this issue 5 years ago • 1 comments

I have trained a model as follows:

relevant_data = data.select_columns(['full_url', 'text_content'])
model = tc.recommender.item_content_recommender.create(relevant_data, "full_url")

I know I can use the model to find items that have similar text_content by passing their URL as follows:

recommendations = model.recommend_from_interactions(['full_url_1'], 20)

But what I am also interested in doing is to get recommendations for a new item by passing its text_content, something like this:

sf = tc.SFrame({'full_url': ['non/existing/url'], 'text_content':['some text content']})
recommendations = model.recommend_from_interactions(sf, 20)

But the recommendations that I get have nothing to do with the text_content that I have passed in, in fact I get the same result as just doing

sf = tc.SFrame({'full_url': ['non/existing/url']})

Can someone please help?

dogahe avatar Oct 08 '19 17:10 dogahe

Hi, Any solution for this issue? I am also looking for a similar option to get recommendations using item attributes. Also, can we use get recommendations from the item content recommender model using just the item attribute? In the above issue using just 'text content'. Basically i want to get similar items using 'text content'

vijayirlapati avatar Jul 01 '21 15:07 vijayirlapati