Recommender Class Reference

Helper class with utility methods for handling recommenders. More...

List of all members.

Static Public Member Functions

static T Configure< T > (T recommender, Dictionary< string, string > parameters, Action< string > report_error)
 Configure a recommender.
static T Configure< T > (this T recommender, string parameters)
 Configure a recommender.
static T Configure< T > (this T recommender, string parameters, Action< string > report_error)
 Configure a recommender.
static ItemRecommender CreateItemRecommender (this Type type)
 Create an item recommender from a type object.
static ItemRecommender CreateItemRecommender (this string typename)
 Create an item recommender from the type name.
static RatingPredictor CreateRatingPredictor (this Type type)
 Create a rating predictor from a type object.
static RatingPredictor CreateRatingPredictor (this string typename)
 Create a rating predictor from the type name.
static string[] List (string prefix)
 List all recommenders in a given namespace.
static string Needs (this IRecommender recommender)
 Describes the kind of data needed by this recommender.
static void SetProperty< T > (this T recommender, string key, string val, Action< string > report_error)
 Sets a property of a MyMediaLite recommender.
static void SetProperty< T > (this T recommender, string key, string val)
 Sets a property of a MyMediaLite recommender.
static string Supports (this IRecommender recommender)
 Describes the kind of arguments supported by this recommender.

Detailed Description

Helper class with utility methods for handling recommenders.

Contains methods for creating and configuring recommender objects, as well as listing recommender classes.


Member Function Documentation

static T Configure< T > ( recommender,
Dictionary< string, string >  parameters,
Action< string >  report_error 
) [inline, static]

Configure a recommender.

Parameters:
recommender the recommender to configure
parameters a dictionary containing the parameters as key-value pairs
report_error void function that takes a string for error reporting
Returns:
the configured recommender
static T Configure< T > ( this T  recommender,
string  parameters 
) [inline, static]

Configure a recommender.

Parameters:
recommender the recommender to configure
parameters a string containing the parameters as key-value pairs
static T Configure< T > ( this T  recommender,
string  parameters,
Action< string >  report_error 
) [inline, static]

Configure a recommender.

Parameters:
recommender the recommender to configure
parameters a string containing the parameters as key-value pairs
report_error void function that takes a string for error reporting
Returns:
the configured recommender
static ItemRecommender CreateItemRecommender ( this Type  type  )  [inline, static]

Create an item recommender from a type object.

Parameters:
type the type object
Returns:
an item recommender object of type type
static ItemRecommender CreateItemRecommender ( this string  typename  )  [inline, static]

Create an item recommender from the type name.

Parameters:
typename a string containing the type name
Returns:
an item recommender object of type typename if the recommender type is found, null otherwise
static RatingPredictor CreateRatingPredictor ( this Type  type  )  [inline, static]

Create a rating predictor from a type object.

Parameters:
type the type object
Returns:
a rating recommender object of type type
static RatingPredictor CreateRatingPredictor ( this string  typename  )  [inline, static]

Create a rating predictor from the type name.

Parameters:
typename a string containing the type name
Returns:
a rating recommender object of type typename if the recommender type is found, null otherwise
static string [] List ( string  prefix  )  [inline, static]

List all recommenders in a given namespace.

Parameters:
prefix a string representing the namespace
Returns:
an array of strings containing the recommender descriptions
static string Needs ( this IRecommender  recommender  )  [inline, static]

Describes the kind of data needed by this recommender.

Parameters:
recommender a recommender
Returns:
a string containing the additional data file arguments needed for training this recommender
static void SetProperty< T > ( this T  recommender,
string  key,
string  val,
Action< string >  report_error 
) [inline, static]

Sets a property of a MyMediaLite recommender.

Parameters:
recommender An IRecommender
key the name of the property (case insensitive)
val the string representation of the value
report_error delegate to report errors
static void SetProperty< T > ( this T  recommender,
string  key,
string  val 
) [inline, static]

Sets a property of a MyMediaLite recommender.

Parameters:
recommender An IRecommender
key the name of the property (case insensitive)
val the string representation of the value
static string Supports ( this IRecommender  recommender  )  [inline, static]

Describes the kind of arguments supported by this recommender.

Parameters:
recommender a recommender
Returns:
a string containing the additional arguments supported by this recommender

The documentation for this class was generated from the following file:
Generated on Thu Apr 5 01:11:39 2012 for MyMediaLite by  doxygen 1.6.3