|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.mymedialite.eval.Ratings
public class Ratings
Evaluation class for rating prediction.
Method Summary | |
---|---|
static double |
computeCBD(double actual_rating,
double prediction,
double min_rating,
double max_rating)
Compute the capped binomial deviation (CBD). |
static double |
computeFit(RatingPredictor recommender)
Computes the RMSE fit of a recommender on the training data. |
static RatingPredictionEvaluationResults |
evaluate(IRatingPredictor recommender,
IRatings ratings)
Evaluates a rating predictor for RMSE, (N)MAE, and CBD. |
static java.util.Collection<java.lang.String> |
getMeasures()
The evaluation measures for rating prediction offered by the class. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public static java.util.Collection<java.lang.String> getMeasures()
public static RatingPredictionEvaluationResults evaluate(IRatingPredictor recommender, IRatings ratings)
recommender
- rating predictorratings
- Test cases
public static double computeCBD(double actual_rating, double prediction, double min_rating, double max_rating)
actual_rating
- the actual ratingprediction
- the predicted ratingmin_rating
- the lower bound of the rating scalemax_rating
- the upper bound of the rating scale
public static double computeFit(RatingPredictor recommender)
recommender
- the rating predictor to evaluate
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |