MyMediaLite  3.07
Static Public Member Functions
RatingBasedRankingCrossValidation Class Reference

Cross-validation for rating-based ranking. More...

List of all members.

Static Public Member Functions

static EvaluationResults DoRatingBasedRankingCrossValidation (this RatingPredictor recommender, uint num_folds, IList< int > candidate_items, CandidateItems candidate_item_mode=CandidateItems.OVERLAP, bool compute_fit=false, bool show_results=false)
 Evaluate on the folds of a dataset split.
static EvaluationResults DoRatingBasedRankingCrossValidation (this RatingPredictor recommender, ISplit< IRatings > split, IList< int > candidate_items, CandidateItems candidate_item_mode=CandidateItems.OVERLAP, bool compute_fit=false, bool show_results=false)
 Evaluate on the folds of a dataset split.
static void DoRatingBasedRankingIterativeCrossValidation (this RatingPredictor recommender, uint num_folds, IList< int > test_users, IList< int > candidate_items, CandidateItems candidate_item_mode, RepeatedEvents repeated_events, 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.
static void DoRatingBasedRankingIterativeCrossValidation (this RatingPredictor recommender, ISplit< IRatings > split, IList< int > test_users, IList< int > candidate_items, CandidateItems candidate_item_mode, RepeatedEvents repeated_events, 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.

Detailed Description

Cross-validation for rating-based ranking.


Member Function Documentation

static EvaluationResults DoRatingBasedRankingCrossValidation ( this RatingPredictor  recommender,
uint  num_folds,
IList< int >  candidate_items,
CandidateItems  candidate_item_mode = CandidateItems.OVERLAP,
bool  compute_fit = false,
bool  show_results = false 
) [inline, static]

Evaluate on the folds of a dataset split.

Parameters:
recommenderan item recommender
num_foldsthe number of folds
candidate_itemsa collection of integers with all candidate items
candidate_item_modethe mode used to determine the candidate items
compute_fitif set to true measure fit on the training data as well
show_resultsset to true to print results to STDERR
Returns:
a dictionary containing the average results over the different folds of the split
static EvaluationResults DoRatingBasedRankingCrossValidation ( this RatingPredictor  recommender,
ISplit< IRatings split,
IList< int >  candidate_items,
CandidateItems  candidate_item_mode = CandidateItems.OVERLAP,
bool  compute_fit = false,
bool  show_results = false 
) [inline, static]

Evaluate on the folds of a dataset split.

Parameters:
recommenderan item recommender
splita dataset split
candidate_itemsa collection of integers with all candidate items
candidate_item_modethe mode used to determine the candidate items
compute_fitif set to true measure fit on the training data as well
show_resultsset to true to print results to STDERR
Returns:
a dictionary containing the average results over the different folds of the split
static void DoRatingBasedRankingIterativeCrossValidation ( this RatingPredictor  recommender,
uint  num_folds,
IList< int >  test_users,
IList< int >  candidate_items,
CandidateItems  candidate_item_mode,
RepeatedEvents  repeated_events,
uint  max_iter,
uint  find_iter = 1,
bool  show_fold_results = false 
) [inline, static]

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

Parameters:
recommenderan item recommender
num_foldsthe number of folds
test_usersa collection of integers with all test users
candidate_itemsa collection of integers with all candidate items
candidate_item_modethe mode used to determine the candidate items
repeated_eventsallow repeated events in the evaluation (i.e. items accessed by a user before may be in the recommended list)
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 DoRatingBasedRankingIterativeCrossValidation ( this RatingPredictor  recommender,
ISplit< IRatings split,
IList< int >  test_users,
IList< int >  candidate_items,
CandidateItems  candidate_item_mode,
RepeatedEvents  repeated_events,
uint  max_iter,
uint  find_iter = 1,
bool  show_fold_results = false 
) [inline, static]

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

Parameters:
recommenderan item recommender
splita positive-only feedback dataset split
test_usersa collection of integers with all test users
candidate_itemsa collection of integers with all candidate items
candidate_item_modethe mode used to determine the candidate items
repeated_eventsallow repeated events in the evaluation (i.e. items accessed by a user before may be in the recommended list)
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: