RatingsCrossValidation Class Reference

Cross-validation for rating prediction. More...

List of all members.

Static Public Member Functions

static
RatingPredictionEvaluationResults 
DoCrossValidation (this RatingPredictor recommender, ISplit< IRatings > split, bool compute_fit=false, bool show_results=false)
 Evaluate on the folds of a dataset split.
static
RatingPredictionEvaluationResults 
DoCrossValidation (this RatingPredictor recommender, uint num_folds=5, bool compute_fit=false, bool show_results=false)
 Evaluate on the folds of a dataset split.
static void DoIterativeCrossValidation (this RatingPredictor recommender, ISplit< IRatings > split, int max_iter, int find_iter=1)
 Evaluate an iterative recommender on the folds of a dataset split, display results on STDOUT.
static void DoIterativeCrossValidation (this RatingPredictor recommender, uint num_folds, int max_iter, int find_iter=1)
 Evaluate an iterative recommender on the folds of a dataset split, display results on STDOUT.

Detailed Description

Cross-validation for rating prediction.


Member Function Documentation

static RatingPredictionEvaluationResults DoCrossValidation ( this RatingPredictor  recommender,
ISplit< IRatings split,
bool  compute_fit = false,
bool  show_results = false 
) [inline, static]

Evaluate on the folds of a dataset split.

Parameters:
recommender a rating predictor
split a rating dataset split
compute_fit if set to true measure fit on the training data as well
show_results set to true to print results to STDERR
Returns:
a dictionary containing the average results over the different folds of the split
static RatingPredictionEvaluationResults DoCrossValidation ( this RatingPredictor  recommender,
uint  num_folds = 5,
bool  compute_fit = false,
bool  show_results = false 
) [inline, static]

Evaluate on the folds of a dataset split.

Parameters:
recommender a rating predictor
num_folds the number of folds
compute_fit if set to true measure fit on the training data as well
show_results if set to true to print results to STDERR
Returns:
a dictionary containing the average results over the different folds of the split
static void DoIterativeCrossValidation ( this RatingPredictor  recommender,
ISplit< IRatings split,
int  max_iter,
int  find_iter = 1 
) [inline, static]

Evaluate an iterative recommender on the folds of a dataset split, display results on STDOUT.

Parameters:
recommender a rating predictor
split a rating dataset split
max_iter the maximum number of iterations
find_iter the report interval
static void DoIterativeCrossValidation ( this RatingPredictor  recommender,
uint  num_folds,
int  max_iter,
int  find_iter = 1 
) [inline, static]

Evaluate an iterative recommender on the folds of a dataset split, display results on STDOUT.

Parameters:
recommender a rating predictor
num_folds the number of folds
max_iter the maximum number of iterations
find_iter the report interval

The documentation for this class was generated from the following file:
Generated on Fri Mar 2 21:19:32 2012 for MyMediaLite by  doxygen 1.6.3