MyMediaLite  3.04
Public Member Functions
IItemSimilarityProvider Interface Reference

Interface for classes that provide item similarities. More...

Inheritance diagram for IItemSimilarityProvider:
ItemKNN ItemKNN ItemAttributeKNN ItemAttributeKNN

List of all members.

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_id1the ID of the first item
item_id2the 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_idthe ID of the item
nthe number of similar items to return

Implemented in ItemKNN, and ItemKNN.


The documentation for this interface was generated from the following file: