IItemSimilarityProvider Interface Reference

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

Inheritance diagram for IItemSimilarityProvider:
ItemKNN ItemKNN ItemAttributeKNN WeightedItemKNN ItemAttributeKNN ItemKNNCosine ItemKNNPearson

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_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:
Generated on Fri Mar 2 21:19:30 2012 for MyMediaLite by  doxygen 1.6.3