IUserSimilarityProvider Interface Reference

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

Inheritance diagram for IUserSimilarityProvider:
UserKNN UserKNN UserAttributeKNN WeightedUserKNN UserAttributeKNN UserKNNCosine UserKNNPearson

List of all members.

Public Member Functions

IList< int > GetMostSimilarUsers (int user_id, uint n=10)
 get the most similar users
float GetUserSimilarity (int user_id1, int user_id2)
 get the similarity between two users

Detailed Description

Interface for classes that provide user similarities.


Member Function Documentation

IList<int> GetMostSimilarUsers ( int  user_id,
uint  n = 10 
)

get the most similar users

Returns:
the users most similar to a given user
Parameters:
user_id the ID of the user
n the number of similar users to return

Implemented in UserKNN, and UserKNN.

float GetUserSimilarity ( int  user_id1,
int  user_id2 
)

get the similarity between two users

Returns:
the user similarity; higher means more similar
Parameters:
user_id1 the ID of the first user
user_id2 the ID of the second user

Implemented in UserKNN, and UserKNN.


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