org.mymedialite.ratingprediction
Interface ITimeAwareRatingPredictor

All Superinterfaces:
java.lang.Cloneable, IRatingPredictor, IRecommender
All Known Implementing Classes:
TimeAwareBaseline, TimeAwareBaselineWithFrequencies, TimeAwareRatingPredictor

public interface ITimeAwareRatingPredictor
extends IRatingPredictor

Interface for time-aware rating predictors. Time-aware rating predictors use the information contained in the dates/times of the ratings to build more accurate models. They may or may not use time information at prediction (as opposed to training) time.


Method Summary
 ITimedRatings getTimedRatings()
          Get the training data that also contains the time information.
 double predict(int user_id, int item_id, java.util.Date time)
          predict rating at a certain point in time.
 void setTimedRatings(ITimedRatings timedRatings)
          Set the training data that also contains the time information.
 
Methods inherited from interface org.mymedialite.ratingprediction.IRatingPredictor
getMaxRating, getMinRating, setMaxRating, setMinRating
 
Methods inherited from interface org.mymedialite.IRecommender
canPredict, loadModel, predict, saveModel, toString, train
 

Method Detail

getTimedRatings

ITimedRatings getTimedRatings()
Get the training data that also contains the time information.


setTimedRatings

void setTimedRatings(ITimedRatings timedRatings)
Set the training data that also contains the time information.


predict

double predict(int user_id,
               int item_id,
               java.util.Date time)
predict rating at a certain point in time.

Parameters:
user_id - the user ID
item_id - the item ID
time - the time of the rating event
Returns:
the prediction value