Method | Description | |
---|---|---|
AUC ( int ranked_items, ICollection |
Compute the area under the ROC curve (AUC) of a list of ranked items
|
|
AUC ( int ranked_items, ICollection |
Compute the area under the ROC curve (AUC) of a list of ranked items
|
|
DisplayResults ( double>.Dictionary |
Display item prediction results
|
|
Evaluate ( IItemRecommender recommender, IPosOnlyFeedback test, IPosOnlyFeedback train, ICollection |
Evaluation for rankings of items User-item combinations that appear in both sets are ignored for the test set, and thus in the evaluation. The evaluation measures are listed in the ItemPredictionMeasures property. Additionally, 'num_users' and 'num_items' report the number of users that were used to compute the results and the number of items that were taken into account. Literature: C. Manning, P. Raghavan, H. Schütze: Introduction to Information Retrieval, Cambridge University Press, 2008 |
|
EvaluateOnline ( IItemRecommender recommender, IPosOnlyFeedback test, IPosOnlyFeedback train, ICollection |
Online evaluation for rankings of items
|
|
MAP ( int ranked_items, ICollection |
Compute the mean average precision (MAP) of a list of ranked items
|
|
MAP ( int ranked_items, ICollection |
Compute the mean average precision (MAP) of a list of ranked items
|
|
NDCG ( int ranked_items, ICollection |
Compute the normalized discounted cumulative gain (NDCG) of a list of ranked items
|
|
NDCG ( int ranked_items, ICollection |
Compute the normalized discounted cumulative gain (NDCG) of a list of ranked items
|
|
PrecisionAt ( int ranked_items, ICollection |
Compute the precision@N of a list of ranked items
|
|
PrecisionAt ( int ranked_items, ICollection |
Compute the precision@N of a list of ranked items
|
Method | Description | |
---|---|---|
ComputeIDCG ( int n ) : double |
Computes the ideal DCG given the number of positive items.
|
public static AUC ( int ranked_items, ICollection |
||
ranked_items | int | a list of ranked item IDs, the highest-ranking item first |
correct_items | ICollection |
a collection of positive/correct item IDs |
return | double |
public static AUC ( int ranked_items, ICollection |
||
ranked_items | int | a list of ranked item IDs, the highest-ranking item first |
correct_items | ICollection |
a collection of positive/correct item IDs |
ignore_items | ICollection |
a collection of item IDs which should be ignored for the evaluation |
return | double |
public static DisplayResults ( double>.Dictionary |
||
result | double>.Dictionary | the result dictionary |
return | void |
public static Evaluate ( IItemRecommender recommender, IPosOnlyFeedback test, IPosOnlyFeedback train, ICollection |
||
recommender | IItemRecommender | item recommender |
test | IPosOnlyFeedback | test cases |
train | IPosOnlyFeedback | training data |
relevant_users | ICollection |
a collection of integers with all relevant users |
relevant_items | ICollection |
a collection of integers with all relevant items |
return | double>.Dictionary |
public static EvaluateOnline ( IItemRecommender recommender, IPosOnlyFeedback test, IPosOnlyFeedback train, ICollection |
||
recommender | IItemRecommender | item recommender |
test | IPosOnlyFeedback | test cases |
train | IPosOnlyFeedback | training data (must be connected to the recommender's training data) |
relevant_users | ICollection |
a collection of integers with all relevant users |
relevant_items | ICollection |
a collection of integers with all relevant items |
return | double>.Dictionary |
public static MAP ( int ranked_items, ICollection |
||
ranked_items | int | a list of ranked item IDs, the highest-ranking item first |
correct_items | ICollection |
a collection of positive/correct item IDs |
return | double |
public static MAP ( int ranked_items, ICollection |
||
ranked_items | int | a list of ranked item IDs, the highest-ranking item first |
correct_items | ICollection |
a collection of positive/correct item IDs |
ignore_items | ICollection |
a collection of item IDs which should be ignored for the evaluation |
return | double |
public static NDCG ( int ranked_items, ICollection |
||
ranked_items | int | a list of ranked item IDs, the highest-ranking item first |
correct_items | ICollection |
a collection of positive/correct item IDs |
return | double |
public static NDCG ( int ranked_items, ICollection |
||
ranked_items | int | a list of ranked item IDs, the highest-ranking item first |
correct_items | ICollection |
a collection of positive/correct item IDs |
ignore_items | ICollection |
a collection of item IDs which should be ignored for the evaluation |
return | double |
public static PrecisionAt ( int ranked_items, ICollection |
||
ranked_items | int | a list of ranked item IDs, the highest-ranking item first |
correct_items | ICollection |
a collection of positive/correct item IDs |
ignore_items | ICollection |
a collection of item IDs which should be ignored for the evaluation |
n | int | the cutoff position in the list |
return | double |
public static PrecisionAt ( int ranked_items, ICollection |
||
ranked_items | int | a list of ranked item IDs, the highest-ranking item first |
correct_items | ICollection |
a collection of positive/correct item IDs |
n | int | the cutoff position in the list |
return | double |