org.apache.mahout.cf.taste.hadoop.als
Class RecommenderJob
java.lang.Object
org.apache.hadoop.conf.Configured
org.apache.mahout.common.AbstractJob
org.apache.mahout.cf.taste.hadoop.als.RecommenderJob
- All Implemented Interfaces:
- org.apache.hadoop.conf.Configurable, org.apache.hadoop.util.Tool
public class RecommenderJob
- extends AbstractJob
Computes the top-N recommendations per user from a decomposition of the rating matrix
Command line arguments specific to this class are:
- --input (path): Directory containing the vectorized user ratings
- --output (path): path where output should go
- --numRecommendations (int): maximum number of recommendations per user
- --maxRating (double): maximum rating of an item
- --numFeatures (int): number of features to use for decomposition
Methods inherited from class org.apache.mahout.common.AbstractJob |
addFlag, addInputOption, addOption, addOption, addOption, addOption, addOutputOption, buildOption, getAnalyzerClassFromOption, getCLIOption, getCombinedTempPath, getGroup, getInputPath, getOption, getOption, getOutputPath, getOutputPath, getTempPath, getTempPath, hasOption, keyFor, maybePut, parseArguments, parseDirectories, prepareJob, prepareJob, prepareJob, setS3SafeCombinedInputPath, 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 |
RecommenderJob
public RecommenderJob()
main
public static void main(String[] args)
throws Exception
- Throws:
Exception
run
public int run(String[] args)
throws Exception
- Throws:
Exception
Copyright © 2008-2012 The Apache Software Foundation. All Rights Reserved.