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

Cross-validation for item recommendation More...

Static Public Member Functions

static ItemRecommendationEvaluationResults DoCrossValidation (this IRecommender recommender, uint num_folds, IList< int > test_users, 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 More...
 
static ItemRecommendationEvaluationResults DoCrossValidation (this IRecommender recommender, ISplit< IPosOnlyFeedback > split, IList< int > test_users, 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 More...
 
static void DoIterativeCrossValidation (this IRecommender 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 More...
 
static void DoIterativeCrossValidation (this IRecommender recommender, ISplit< IPosOnlyFeedback > 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 More...
 

Detailed Description

Cross-validation for item recommendation

Member Function Documentation

static ItemRecommendationEvaluationResults DoCrossValidation ( this IRecommender  recommender,
uint  num_folds,
IList< int >  test_users,
IList< int >  candidate_items,
CandidateItems  candidate_item_mode = CandidateItems.OVERLAP,
bool  compute_fit = false,
bool  show_results = false 
)
inlinestatic

Evaluate on the folds of a dataset split

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
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 ItemRecommendationEvaluationResults DoCrossValidation ( this IRecommender  recommender,
ISplit< IPosOnlyFeedback split,
IList< int >  test_users,
IList< int >  candidate_items,
CandidateItems  candidate_item_mode = CandidateItems.OVERLAP,
bool  compute_fit = false,
bool  show_results = false 
)
inlinestatic

Evaluate on the folds of a dataset split

Parameters
recommenderan item recommender
splita 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
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 DoIterativeCrossValidation ( this IRecommender  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 
)
inlinestatic

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 DoIterativeCrossValidation ( this IRecommender  recommender,
ISplit< IPosOnlyFeedback 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 
)
inlinestatic

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: