|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.mymedialite.ratingprediction.Extensions
public class Extensions
Class that contains static methods for rating prediction.
Method Summary | |
---|---|
static void |
writePredictions(IRecommender recommender,
IRatings ratings,
java.io.PrintWriter writer,
IEntityMapping userMapping,
IEntityMapping itemMapping,
java.lang.String separator)
Rate a given set of instances and write it to a TextWriter. |
static void |
writePredictions(IRecommender recommender,
IRatings ratings,
java.lang.String filename,
IEntityMapping userMapping,
IEntityMapping itemMapping,
java.lang.String separator)
Rate a given set of instances and write it to a file. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public static void writePredictions(IRecommender recommender, IRatings ratings, java.io.PrintWriter writer, IEntityMapping userMapping, IEntityMapping itemMapping, java.lang.String separator)
recommender
- rating predictorratings
- test caseswriter
- the TextWriter to write the predictions touserMapping
- an EntityMapping object for the user IDsitemMapping
- an EntityMapping object for the item IDsseparator
- the field separator to usepublic static void writePredictions(IRecommender recommender, IRatings ratings, java.lang.String filename, IEntityMapping userMapping, IEntityMapping itemMapping, java.lang.String separator) throws java.io.IOException
recommender
- rating predictorratings
- test casesfilename
- the name of the file to write the predictions touserMapping
- an EntityMapping object for the user IDsitemMapping
- an EntityMapping object for the item IDsseparator
- the field separator to use
java.io.IOException
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |