KDDCup Class Reference

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

List of all members.

Static Public Member Functions

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

Detailed Description

Evaluation and prediction routines for the KDD Cup 2011.


Member Function Documentation

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:
predictions the predictions for all candidates as one list
candidates the candidate items (per user)
hits the real items (per user)
Returns:
the error rate on this validation split
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:
recommender the recommender to use
candidates the candidate items (per user)
hits the real items (per user)
Returns:
the error rate on this validation split
static void PredictRatings ( this IRecommender  recommender,
IRatings  ratings,
BinaryWriter  writer 
) [inline, static]

Predict ratings for Track 1.

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

Predict ratings for Track 1.

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

Predict ratings (double precision).

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

Predict ratings (double precision).

Parameters:
recommender the recommender to use
ratings the ratings to predict
filename the 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:
recommender the recommender to use
candidates a mapping from user IDs to the candidate items
writer the writer to write the scores to
static void PredictScoresTrack2 ( this IRecommender  recommender,
Dictionary< int, IList< int >>  candidates,
string  filename 
) [inline, static]

Predict item scores for Track 2.

Parameters:
recommender the recommender to use
candidates a mapping from user IDs to the candidate items
filename the 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:
recommender the recommender to use
candidates a mapping from user IDs to the candidate items
writer the writer object to write the predictions to
static void PredictTrack2 ( this IRecommender  recommender,
Dictionary< int, IList< int >>  candidates,
string  filename 
) [inline, static]

Predict items for Track 2.

Parameters:
recommender the recommender to use
candidates a mapping from user IDs to the candidate items
filename the file to write the predictions to

The documentation for this class was generated from the following file:
Generated on Thu Apr 5 01:11:32 2012 for MyMediaLite by  doxygen 1.6.3