org.apache.mahout.utils.eval
Class InMemoryFactorizationEvaluator

java.lang.Object
  extended by org.apache.hadoop.conf.Configured
      extended by org.apache.mahout.common.AbstractJob
          extended by org.apache.mahout.utils.eval.InMemoryFactorizationEvaluator
All Implemented Interfaces:
org.apache.hadoop.conf.Configurable, org.apache.hadoop.util.Tool

public class InMemoryFactorizationEvaluator
extends AbstractJob

Measures the root-mean-squared error of a ratring matrix factorization against a test set.

the factorization matrices are read into memory, which makes this job pretty fast, if you get OutOfMemoryErrors, use ParallelFactorizationEvaluator instead

Command line arguments specific to this class are:

  1. --output (path): path where output should go
  2. --pairs (path): path containing the test ratings, each line must be userID,itemID,rating
  3. --userFeatures (path): path to the user feature matrix
  4. --itemFeatures (path): path to the item feature matrix


Constructor Summary
InMemoryFactorizationEvaluator()
           
 
Method Summary
static void main(String[] args)
           
 int run(String[] args)
           
 
Methods inherited from class org.apache.mahout.common.AbstractJob
addFlag, addInputOption, addOption, addOption, addOption, addOption, addOutputOption, buildOption, getInputPath, getOption, getOutputPath, hasOption, keyFor, maybePut, parseArguments, parseDirectories, prepareJob, shouldRunNextPhase
 
Methods inherited from class org.apache.hadoop.conf.Configured
getConf, setConf
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.apache.hadoop.conf.Configurable
getConf, setConf
 

Constructor Detail

InMemoryFactorizationEvaluator

public InMemoryFactorizationEvaluator()
Method Detail

main

public static void main(String[] args)
                 throws Exception
Throws:
Exception

run

public int run(String[] args)
        throws Exception
Throws:
Exception


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