org.apache.mahout.cf.taste.example.grouplens
Class GroupLensDataModel

java.lang.Object
  extended by org.apache.mahout.cf.taste.impl.model.file.FileDataModel
      extended by org.apache.mahout.cf.taste.example.grouplens.GroupLensDataModel
All Implemented Interfaces:
Refreshable, DataModel

public final class GroupLensDataModel
extends FileDataModel


Constructor Summary
GroupLensDataModel()
           
GroupLensDataModel(java.io.File ratingsFile)
           
 
Method Summary
static java.io.File readResourceToTempFile(java.lang.String resourceName)
           
 java.lang.String toString()
           
 
Methods inherited from class org.apache.mahout.cf.taste.impl.model.file.FileDataModel
buildModel, determineDelimiter, getDataFile, getDelimiter, getItemIDs, getItemIDsFromUser, getNumItems, getNumUsers, getNumUsersWithPreferenceFor, getPreferencesForItem, getPreferencesFromUser, getPreferenceValue, getUserIDs, hasPreferenceValues, processFile, processFileWithoutID, processLine, processLineWithoutID, readItemIDFromString, readUserIDFromString, refresh, reload, removePreference, setPreference
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

GroupLensDataModel

public GroupLensDataModel()
                   throws java.io.IOException
Throws:
java.io.IOException

GroupLensDataModel

public GroupLensDataModel(java.io.File ratingsFile)
                   throws java.io.IOException
Parameters:
ratingsFile - GroupLens ratings.dat file in its native format
Throws:
java.io.IOException - if an error occurs while reading or writing files
Method Detail

readResourceToTempFile

public static java.io.File readResourceToTempFile(java.lang.String resourceName)
                                           throws java.io.IOException
Throws:
java.io.IOException

toString

public java.lang.String toString()
Overrides:
toString in class FileDataModel


Copyright © 2008-2010 The Apache Software Foundation. All Rights Reserved.