MyMediaLite  3.02
Static Public Member Functions
Extensions Class Reference

Extension methods for IRecommender. More...

List of all members.

Static Public Member Functions

static
System.Collections.Generic.IList
< int > 
PredictItems (this IRecommender recommender, int user_id, System.Collections.Generic.IList< int > candidate_items, int n=-1)
 Predict items for a given user.
static
System.Collections.Generic.IList
< Pair< int, float > > 
ScoreItems (this IRecommender recommender, int user_id, System.Collections.Generic.IList< int > candidate_items, int n=-1)
 Score items for a given user.

Detailed Description

Extension methods for IRecommender.


Member Function Documentation

static System.Collections.Generic.IList<int> PredictItems ( this IRecommender  recommender,
int  user_id,
System.Collections.Generic.IList< int >  candidate_items,
int  n = -1 
) [inline, static]

Predict items for a given user.

Parameters:
recommenderthe recommender to use
user_idthe numerical ID of the user
candidate_itemsa collection of numerical IDs of candidate items
nnumber of items to return (optional)
Returns:
an ordered list of items, the most likely item first
static System.Collections.Generic.IList<Pair<int, float> > ScoreItems ( this IRecommender  recommender,
int  user_id,
System.Collections.Generic.IList< int >  candidate_items,
int  n = -1 
) [inline, static]

Score items for a given user.

Parameters:
recommenderthe recommender to use
user_idthe numerical ID of the user
candidate_itemsa collection of numerical IDs of candidate items
nnumber of items to return (optional)
Returns:
a list of pairs, each pair consisting of the item ID and the predicted score

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