|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.mymedialite.eval.ItemsCrossValidation
public class ItemsCrossValidation
Cross-validation for item recommendation.
Method Summary | |
---|---|
static ItemRecommendationEvaluationResults |
doCrossValidation(IRecommender recommender,
int num_folds,
java.util.List<java.lang.Integer> test_users,
java.util.List<java.lang.Integer> candidate_items,
CandidateItems candidate_item_mode,
boolean show_results)
Evaluate on the folds of a dataset split. |
static ItemRecommendationEvaluationResults |
doCrossValidation(IRecommender recommender,
ISplit<IPosOnlyFeedback> split,
java.util.List<java.lang.Integer> test_users,
java.util.List<java.lang.Integer> candidate_items,
CandidateItems candidate_item_mode,
boolean show_results)
Evaluate on the folds of a dataset split. |
static void |
doIterativeCrossValidation(IRecommender recommender,
int num_folds,
java.util.List<java.lang.Integer> test_users,
java.util.List<java.lang.Integer> candidate_items,
CandidateItems candidate_item_mode,
boolean repeated_events,
int max_iter,
int find_iter)
Evaluate an iterative recommender on the folds of a dataset split, display results on STDOUT. |
static void |
doIterativeCrossValidation(IRecommender recommender,
ISplit<IPosOnlyFeedback> split,
java.util.List<java.lang.Integer> test_users,
java.util.List<java.lang.Integer> candidate_items,
CandidateItems candidate_item_mode,
boolean repeated_events,
int max_iter,
int find_iter)
Evaluate an iterative recommender on the folds of a dataset split, display results on STDOUT. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public static ItemRecommendationEvaluationResults doCrossValidation(IRecommender recommender, int num_folds, java.util.List<java.lang.Integer> test_users, java.util.List<java.lang.Integer> candidate_items, CandidateItems candidate_item_mode, boolean show_results) throws java.lang.Exception
recommender
- an item recommendernum_folds
- the number of foldstest_users
- a collection of integers with all test userscandidate_items
- a collection of integers with all candidate itemscandidate_item_mode
- the mode used to determine the candidate itemsshow_results
- set to true to print results to STDERR
java.lang.Exception
public static ItemRecommendationEvaluationResults doCrossValidation(IRecommender recommender, ISplit<IPosOnlyFeedback> split, java.util.List<java.lang.Integer> test_users, java.util.List<java.lang.Integer> candidate_items, CandidateItems candidate_item_mode, boolean show_results) throws java.lang.Exception
recommender
- an item recommendersplit
- a dataset splittest_users
- a collection of integers with all test userscandidate_items
- a collection of integers with all candidate itemscandidate_item_mode
- the mode used to determine the candidate itemsshow_results
- set to true to print results to STDERR
java.lang.Exception
public static void doIterativeCrossValidation(IRecommender recommender, int num_folds, java.util.List<java.lang.Integer> test_users, java.util.List<java.lang.Integer> candidate_items, CandidateItems candidate_item_mode, boolean repeated_events, int max_iter, int find_iter) throws java.lang.Exception
recommender
- an item recommendernum_folds
- the number of foldstest_users
- a collection of integers with all test userscandidate_items
- a collection of integers with all candidate itemscandidate_item_mode
- the mode used to determine the candidate itemsrepeated_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 iterationsfind_iter
- the report interval
java.lang.Exception
public static void doIterativeCrossValidation(IRecommender recommender, ISplit<IPosOnlyFeedback> split, java.util.List<java.lang.Integer> test_users, java.util.List<java.lang.Integer> candidate_items, CandidateItems candidate_item_mode, boolean repeated_events, int max_iter, int find_iter) throws java.lang.Exception
recommender
- an item recommendersplit
- a positive-only feedback dataset splittest_users
- a collection of integers with all test userscandidate_items
- a collection of integers with all candidate itemscandidate_item_mode
- the mode used to determine the candidate itemsrepeated_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 iterationsfind_iter
- the report interval
java.lang.Exception
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |