public final class ItemSimilarityJob extends AbstractJob
Distributed precomputation of the item-item-similarities for Itembased Collaborative Filtering
Preferences in the input file should look like userID,itemID[,preferencevalue]
Preference value is optional to accommodate applications that have no notion of a preference value (that is, the user simply expresses a preference for an item, but no degree of preference).
The preference value is assumed to be parseable as a double
. The user IDs and item IDs are
parsed as long
s.
Command line arguments specific to this class are:
VectorSimilarityMeasure
General command line options are documented in AbstractJob
.
Note that because of how Hadoop parses arguments, all "-D" arguments must appear before all other arguments.
Modifier and Type | Class and Description |
---|---|
static class |
ItemSimilarityJob.MostSimilarItemPairsMapper |
static class |
ItemSimilarityJob.MostSimilarItemPairsReducer |
Modifier and Type | Field and Description |
---|---|
static String |
ITEM_ID_INDEX_PATH_STR |
static String |
MAX_SIMILARITIES_PER_ITEM |
argMap, inputFile, inputPath, outputFile, outputPath, tempPath
Constructor and Description |
---|
ItemSimilarityJob() |
Modifier and Type | Method and Description |
---|---|
static void |
main(String[] args) |
int |
run(String[] args) |
addFlag, addInputOption, addOption, addOption, addOption, addOption, addOutputOption, buildOption, buildOption, getAnalyzerClassFromOption, getCLIOption, getConf, getDimensions, getFloat, getFloat, getGroup, getInputFile, getInputPath, getInt, getInt, getOption, getOption, getOption, getOptions, getOutputFile, getOutputPath, getOutputPath, getTempPath, getTempPath, hasOption, keyFor, maybePut, parseArguments, parseArguments, parseDirectories, prepareJob, prepareJob, prepareJob, prepareJob, setConf, setS3SafeCombinedInputPath, shouldRunNextPhase
Copyright © 2008–2017 The Apache Software Foundation. All rights reserved.