MyMediaLite  3.11
Static Public Member Functions | List of all members
RatingsCrossValidation Class Reference

Cross-validation for rating prediction More...

Static Public Member Functions

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

Detailed Description

Cross-validation for rating prediction

Member Function Documentation

static RatingPredictionEvaluationResults DoCrossValidation ( this RatingPredictor  recommender,
uint  num_folds = 5,
bool  compute_fit = false,
bool  show_fold_results = false 
)
inlinestatic

Evaluate on the folds of a dataset split

Parameters
recommendera rating predictor
num_foldsthe number of folds
compute_fitif set to true measure fit on the training data as well
show_fold_resultsif set to true to print per-fold results to STDERR
Returns
a dictionary containing the average results over the different folds of the split
static RatingPredictionEvaluationResults DoCrossValidation ( this RatingPredictor  recommender,
ISplit< IRatings split,
bool  compute_fit = false,
bool  show_fold_results = false 
)
inlinestatic

Evaluate on the folds of a dataset split

Parameters
recommendera rating predictor
splita rating dataset split
compute_fitif set to true measure fit on the training data as well
show_fold_resultsset to true to print per-fold results to STDERR
Returns
a dictionary containing the average results over the different folds of the split
static void DoIterativeCrossValidation ( this RatingPredictor  recommender,
uint  num_folds,
uint  max_iter,
uint  find_iter = 1,
bool  show_fold_results = false 
)
inlinestatic

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

Parameters
recommendera rating predictor
num_foldsthe number of folds
max_iterthe maximum number of iterations
find_iterthe report interval
show_fold_resultsif set to true to print per-fold results to STDERR
static void DoIterativeCrossValidation ( this RatingPredictor  recommender,
ISplit< IRatings split,
uint  max_iter,
uint  find_iter = 1,
bool  show_fold_results = false 
)
inlinestatic

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

Parameters
recommendera rating predictor
splita rating dataset split
max_iterthe maximum number of iterations
find_iterthe report interval
show_fold_resultsif set to true to print per-fold results to STDERR

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