The Altair Community is migrating to a new platform to provide a better experience for you. In preparation for the migration, the Altair Community is on read-only mode from October 28 - November 6, 2024. Technical support via cases will continue to work as is. For any urgent requests from Students/Faculty members, please submit the form linked here
Select Most Similar Items
alidehghan
Member Posts: 5 Contributor II
Hi Everyone,
I have constructed a similarity matrix (as mentioned in the paper you linked) for purchase items, and now I need to select K-Nearest Neighbors for them, but I don't know how can I select it. For example I have a matrix like it:
Item1 Item2 Item3 Item 4 Item5
Item1 1 0.97 0.87 0.95 0.92
Item2 0.97 1 0.78 0.89 0.5
Item3 0.87 0.78 1 0.96 0.87
Item4 0.96 0.89 0.96 1 0.77
Item5 0.92 0.5 0.87 0.77 1
And "Active User" has purchased "Item1, Item4", and if consider K=2, I need to iterate on Item1 and Item4 and select most similar items (Top-N Algorithm), in my case "Item2,Item5" are chosen as candidate. I should add them to a queue and do this for next purchased item "Item4" => "Item3,Item2"
So my recommendation queue contains "Item2,Item5,Item3" and then I should order it by their similarity values "(0.97+0.89),0.92,0.96" and select K=2 items => Item2,Item3... so my recommendation for "Item1,Item4" is "Item2,Item3"
Please guide me which operators I should use to select Top-N items for a specific item...
Thanks all in advance
I have constructed a similarity matrix (as mentioned in the paper you linked) for purchase items, and now I need to select K-Nearest Neighbors for them, but I don't know how can I select it. For example I have a matrix like it:
Item1 Item2 Item3 Item 4 Item5
Item1 1 0.97 0.87 0.95 0.92
Item2 0.97 1 0.78 0.89 0.5
Item3 0.87 0.78 1 0.96 0.87
Item4 0.96 0.89 0.96 1 0.77
Item5 0.92 0.5 0.87 0.77 1
And "Active User" has purchased "Item1, Item4", and if consider K=2, I need to iterate on Item1 and Item4 and select most similar items (Top-N Algorithm), in my case "Item2,Item5" are chosen as candidate. I should add them to a queue and do this for next purchased item "Item4" => "Item3,Item2"
So my recommendation queue contains "Item2,Item5,Item3" and then I should order it by their similarity values "(0.97+0.89),0.92,0.96" and select K=2 items => Item2,Item3... so my recommendation for "Item1,Item4" is "Item2,Item3"
Please guide me which operators I should use to select Top-N items for a specific item...
Thanks all in advance
0
Answers
Not quite sure about what exactly you need, but the this may help..
Might you please tell me how can I do so with SimilarityMatrix and input items (As I described before)
Thanks for your help
So, please help me on it.