MyMediaLite  3.01
Static Public Member Functions
KDDCup Class Reference

Evaluation and prediction routines for the KDD Cup 2011. More...

List of all members.

Static Public Member Functions

static double EvaluateTrack2 (this IRecommender recommender, Dictionary< int, IList< int >> candidates, Dictionary< int, IList< int >> hits)
 Evaluate Track 2 on a validation set.
static double EvaluateTrack2 (IList< byte > predictions, Dictionary< int, IList< int >> candidates, Dictionary< int, IList< int >> hits)
 Evaluate Track 2 on a validation set.
static void PredictRatings (this IRecommender recommender, IRatings ratings, string filename)
 Predict ratings for Track 1.
static void PredictRatings (this IRecommender recommender, IRatings ratings, BinaryWriter writer)
 Predict ratings for Track 1.
static void PredictRatingsDouble (this IRecommender recommender, IRatings ratings, string filename)
 Predict ratings (double precision)
static void PredictRatingsDouble (this IRecommender recommender, IRatings ratings, BinaryWriter writer)
 Predict ratings (double precision)
static void PredictScoresTrack2 (this IRecommender recommender, Dictionary< int, IList< int >> candidates, string filename)
 Predict item scores for Track 2.
static void PredictScoresTrack2 (this IRecommender recommender, Dictionary< int, IList< int >> candidates, BinaryWriter writer)
 Predict item scores for Track 2.
static void PredictTrack2 (this IRecommender recommender, Dictionary< int, IList< int >> candidates, string filename)
 Predict items for Track 2.
static void PredictTrack2 (this IRecommender recommender, Dictionary< int, IList< int >> candidates, TextWriter writer)
 Predict items for Track 2.

Detailed Description

Evaluation and prediction routines for the KDD Cup 2011.


Member Function Documentation

static double EvaluateTrack2 ( this IRecommender  recommender,
Dictionary< int, IList< int >>  candidates,
Dictionary< int, IList< int >>  hits 
) [inline, static]

Evaluate Track 2 on a validation set.

Parameters:
recommenderthe recommender to use
candidatesthe candidate items (per user)
hitsthe real items (per user)
Returns:
the error rate on this validation split
static double EvaluateTrack2 ( IList< byte >  predictions,
Dictionary< int, IList< int >>  candidates,
Dictionary< int, IList< int >>  hits 
) [inline, static]

Evaluate Track 2 on a validation set.

Parameters:
predictionsthe predictions for all candidates as one list
candidatesthe candidate items (per user)
hitsthe real items (per user)
Returns:
the error rate on this validation split
static void PredictRatings ( this IRecommender  recommender,
IRatings  ratings,
string  filename 
) [inline, static]

Predict ratings for Track 1.

Parameters:
recommenderthe recommender to use
ratingsthe ratings to predict
filenamethe file to write the predictions to
static void PredictRatings ( this IRecommender  recommender,
IRatings  ratings,
BinaryWriter  writer 
) [inline, static]

Predict ratings for Track 1.

Parameters:
recommenderthe recommender to use
ratingsthe ratings to predict
writerthe writer object to write the predictions to
static void PredictRatingsDouble ( this IRecommender  recommender,
IRatings  ratings,
string  filename 
) [inline, static]

Predict ratings (double precision)

Parameters:
recommenderthe recommender to use
ratingsthe ratings to predict
filenamethe file to write the predictions to
static void PredictRatingsDouble ( this IRecommender  recommender,
IRatings  ratings,
BinaryWriter  writer 
) [inline, static]

Predict ratings (double precision)

Parameters:
recommenderthe recommender to use
ratingsthe ratings to predict
writerthe writer object to write the predictions to
static void PredictScoresTrack2 ( this IRecommender  recommender,
Dictionary< int, IList< int >>  candidates,
string  filename 
) [inline, static]

Predict item scores for Track 2.

Parameters:
recommenderthe recommender to use
candidatesa mapping from user IDs to the candidate items
filenamethe file to write the predictions to
static void PredictScoresTrack2 ( this IRecommender  recommender,
Dictionary< int, IList< int >>  candidates,
BinaryWriter  writer 
) [inline, static]

Predict item scores for Track 2.

Parameters:
recommenderthe recommender to use
candidatesa mapping from user IDs to the candidate items
writerthe writer to write the scores to
static void PredictTrack2 ( this IRecommender  recommender,
Dictionary< int, IList< int >>  candidates,
string  filename 
) [inline, static]

Predict items for Track 2.

Parameters:
recommenderthe recommender to use
candidatesa mapping from user IDs to the candidate items
filenamethe file to write the predictions to
static void PredictTrack2 ( this IRecommender  recommender,
Dictionary< int, IList< int >>  candidates,
TextWriter  writer 
) [inline, static]

Predict items for Track 2.

Parameters:
recommenderthe recommender to use
candidatesa mapping from user IDs to the candidate items
writerthe writer object to write the predictions to

The documentation for this class was generated from the following file: