Interface for classes that provide item similarities
More...
Public Member Functions |
float | GetItemSimilarity (int item_id1, int item_id2) |
| get the similarity between two items
|
IList< int > | GetMostSimilarItems (int item_id, uint n=10) |
| get the most similar items
|
Detailed Description
Interface for classes that provide item similarities
Member Function Documentation
float GetItemSimilarity |
( |
int |
item_id1, |
|
|
int |
item_id2 |
|
) |
| |
get the similarity between two items
- Returns
- the item similarity; higher means more similar
- Parameters
-
item_id1 | the ID of the first item |
item_id2 | the ID of the second item |
Implemented in ItemKNN, and ItemKNN.
IList<int> GetMostSimilarItems |
( |
int |
item_id, |
|
|
uint |
n = 10 |
|
) |
| |
get the most similar items
- Returns
- the items most similar to a given item
- Parameters
-
item_id | the ID of the item |
n | the number of similar items to return |
Implemented in ItemKNN, and ItemKNN.
The documentation for this interface was generated from the following file:
- IItemSimilarityProvider.cs