org.mymedialite.io
Class ItemDataRatingThreshold

java.lang.Object
  extended by org.mymedialite.io.ItemDataRatingThreshold

public class ItemDataRatingThreshold
extends java.lang.Object

Class that contains static methods for reading in implicit feedback data for ItemRecommender.


Method Summary
static IPosOnlyFeedback read(java.io.BufferedReader reader, double rating_threshold, IEntityMapping user_mapping, IEntityMapping item_mapping, boolean ignore_first_line)
          Read in rating data which will be interpreted as implicit feedback data from a TextReader.
static IPosOnlyFeedback read(java.lang.String filename, double rating_threshold, IEntityMapping user_mapping, IEntityMapping item_mapping, boolean ignore_first_line)
          Read in rating data which will be interpreted as implicit feedback data from a file.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

read

public static IPosOnlyFeedback read(java.lang.String filename,
                                    double rating_threshold,
                                    IEntityMapping user_mapping,
                                    IEntityMapping item_mapping,
                                    boolean ignore_first_line)
                             throws java.io.IOException
Read in rating data which will be interpreted as implicit feedback data from a file.

Parameters:
filename - name of the file to be read from
rating_threshold - the minimum rating value needed to be accepted as positive feedback
user_mapping - user object
item_mapping - item object
ignore_first_line - if true, ignore the first line
Returns:
a object with the user-wise collaborative data
Throws:
java.io.IOException

read

public static IPosOnlyFeedback read(java.io.BufferedReader reader,
                                    double rating_threshold,
                                    IEntityMapping user_mapping,
                                    IEntityMapping item_mapping,
                                    boolean ignore_first_line)
                             throws java.lang.Exception
Read in rating data which will be interpreted as implicit feedback data from a TextReader.

Parameters:
reader - the TextReader to be read from
rating_threshold - the minimum rating value needed to be accepted as positive feedback
user_mapping - user object
item_mapping - item object
ignore_first_line - if true, ignore the first line
Returns:
a object with the user-wise collaborative data
Throws:
java.lang.Exception