org.apache.mahout.cf.taste.example.jester
Class JesterDataModel
java.lang.Object
org.apache.mahout.cf.taste.impl.model.AbstractDataModel
org.apache.mahout.cf.taste.impl.model.file.FileDataModel
org.apache.mahout.cf.taste.example.jester.JesterDataModel
- All Implemented Interfaces:
- Serializable, Refreshable, DataModel
public final class JesterDataModel
- extends FileDataModel
- See Also:
- Serialized Form
Methods inherited from class org.apache.mahout.cf.taste.impl.model.file.FileDataModel |
determineDelimiter, getDataFile, getDelimiter, getItemIDs, getItemIDsFromUser, getMaxPreference, getMinPreference, getNumItems, getNumUsers, getNumUsersWithPreferenceFor, getPreferencesForItem, getPreferencesFromUser, getPreferenceTime, getPreferenceValue, getUserIDs, hasPreferenceValues, processFile, processFileWithoutID, processLineWithoutID, readItemIDFromString, readTimestampFromString, readUserIDFromString, refresh, removePreference, setPreference, toString |
JesterDataModel
public JesterDataModel()
throws IOException
- Throws:
IOException
JesterDataModel
public JesterDataModel(File ratingsFile)
throws IOException
- Parameters:
ratingsFile
- Jester ratings file in CSV format
- Throws:
IOException
- if an error occurs while reading or writing files
reload
public void reload()
- Overrides:
reload
in class FileDataModel
buildModel
protected DataModel buildModel()
throws IOException
- Overrides:
buildModel
in class FileDataModel
- Throws:
IOException
processLine
protected void processLine(String line,
FastByIDMap<?> rawData,
FastByIDMap<FastByIDMap<Long>> timestamps,
boolean fromPriorData)
- Overrides:
processLine
in class FileDataModel
Copyright © 2008-2010 The Apache Software Foundation. All Rights Reserved.