ItemsCrossValidation Class Reference
Cross-validation for item recommendation.
More...
List of all members.
Static Public Member Functions |
static
ItemRecommendationEvaluationResults | DoCrossValidation (this IRecommender recommender, ISplit< IPosOnlyFeedback > split, IList< int > test_users, IList< int > candidate_items, CandidateItems candidate_item_mode=CandidateItems.OVERLAP, bool show_results=false) |
| Evaluate on the folds of a dataset split.
|
static Dictionary< string, double > | DoCrossValidation (this IRecommender recommender, uint num_folds, IList< int > test_users, IList< int > candidate_items, CandidateItems candidate_item_mode=CandidateItems.OVERLAP, bool show_results=false) |
| Evaluate on the folds of a dataset split.
|
static void | DoIterativeCrossValidation (this IRecommender recommender, ISplit< IPosOnlyFeedback > split, IList< int > test_users, IList< int > candidate_items, CandidateItems candidate_item_mode, bool repeated_events, 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 IRecommender recommender, uint num_folds, IList< int > test_users, IList< int > candidate_items, CandidateItems candidate_item_mode, bool repeated_events, 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 item recommendation.
Member Function Documentation
Evaluate on the folds of a dataset split.
- Parameters:
-
| recommender | an item recommender |
| split | a dataset split |
| test_users | a collection of integers with all test users |
| candidate_items | a collection of integers with all candidate items |
| candidate_item_mode | the mode used to determine the candidate items |
| 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 Dictionary<string, double> DoCrossValidation |
( |
this IRecommender |
recommender, |
|
|
uint |
num_folds, |
|
|
IList< int > |
test_users, |
|
|
IList< int > |
candidate_items, |
|
|
CandidateItems |
candidate_item_mode = CandidateItems.OVERLAP , |
|
|
bool |
show_results = false | |
|
) |
| | [inline, static] |
Evaluate on the folds of a dataset split.
- Parameters:
-
| recommender | an item recommender |
| num_folds | the number of folds |
| test_users | a collection of integers with all test users |
| candidate_items | a collection of integers with all candidate items |
| candidate_item_mode | the mode used to determine the candidate items |
| 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 void DoIterativeCrossValidation |
( |
this IRecommender |
recommender, |
|
|
ISplit< IPosOnlyFeedback > |
split, |
|
|
IList< int > |
test_users, |
|
|
IList< int > |
candidate_items, |
|
|
CandidateItems |
candidate_item_mode, |
|
|
bool |
repeated_events, |
|
|
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 | an item recommender |
| split | a positive-only feedback dataset split |
| test_users | a collection of integers with all test users |
| candidate_items | a collection of integers with all candidate items |
| candidate_item_mode | the mode used to determine the candidate items |
| repeated_events | allow repeated events in the evaluation (i.e. items accessed by a user before may be in the recommended list) |
| max_iter | the maximum number of iterations |
| find_iter | the report interval |
static void DoIterativeCrossValidation |
( |
this IRecommender |
recommender, |
|
|
uint |
num_folds, |
|
|
IList< int > |
test_users, |
|
|
IList< int > |
candidate_items, |
|
|
CandidateItems |
candidate_item_mode, |
|
|
bool |
repeated_events, |
|
|
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 | an item recommender |
| num_folds | the number of folds |
| test_users | a collection of integers with all test users |
| candidate_items | a collection of integers with all candidate items |
| candidate_item_mode | the mode used to determine the candidate items |
| repeated_events | allow repeated events in the evaluation (i.e. items accessed by a user before may be in the recommended list) |
| max_iter | the maximum number of iterations |
| find_iter | the report interval |
The documentation for this class was generated from the following file: