Model Class Reference

Class containing static routines for reading and writing recommender models. More...

List of all members.

Static Public Member Functions

static StreamReader GetReader (string filename, Type recommender_type)
 Get a reader object to read in model parameters of a recommender.
static StreamWriter GetWriter (string filename, Type recommender_type)
 Get a writer object to save the model parameters of a recommender.
static IRecommender Load (string filename)
 Load a recommender from a file, including object creation.
static void Load (IRecommender recommender, string filename)
 Load the model parameters of a recommender from a file.
static void Save (IRecommender recommender, string filename, int iteration)
 Save the model parameters of a recommender (in a given iteration of the training) to a file.
static void Save (IRecommender recommender, string filename)
 Save the model parameters of a recommender to a file.

Detailed Description

Class containing static routines for reading and writing recommender models.


Member Function Documentation

static StreamReader GetReader ( string  filename,
Type  recommender_type 
) [inline, static]

Get a reader object to read in model parameters of a recommender.

Parameters:
filename the filename of the model file
recommender_type the expected recommender type
Returns:
a StreamReader
static StreamWriter GetWriter ( string  filename,
Type  recommender_type 
) [inline, static]

Get a writer object to save the model parameters of a recommender.

Parameters:
filename the filename of the model file
recommender_type the recommender type
Returns:
a StreamWriter
static IRecommender Load ( string  filename  )  [inline, static]

Load a recommender from a file, including object creation.

Parameters:
filename the name of the model file
Returns:
the recommender loaded from the file
static void Load ( IRecommender  recommender,
string  filename 
) [inline, static]

Load the model parameters of a recommender from a file.

Parameters:
recommender the IRecommender to load
filename the filename template
static void Save ( IRecommender  recommender,
string  filename,
int  iteration 
) [inline, static]

Save the model parameters of a recommender (in a given iteration of the training) to a file.

Does not save if filename is an empty string.

Parameters:
recommender the IRecommender to save
filename the filename template
iteration the iteration (will be appended to the filename)
static void Save ( IRecommender  recommender,
string  filename 
) [inline, static]

Save the model parameters of a recommender to a file.

Does not save if filename is an empty string.

Parameters:
recommender the recommender to store
filename the filename (may include relative paths)

The documentation for this class was generated from the following file:
Generated on Mon Nov 28 19:18:46 2011 for MyMediaLite by  doxygen 1.6.3