MyMediaLite  3.11
Public Member Functions | List of all members
IUserSimilarityProvider Interface Reference

Interface for classes that provide user similarities More...

Inheritance diagram for IUserSimilarityProvider:
UserKNN UserKNN UserAttributeKNN UserAttributeKNN

Public Member Functions

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

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_idthe ID of the user
nthe 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_id1the ID of the first user
user_id2the ID of the second user

Implemented in UserKNN, and UserKNN.


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