org.apache.mahout.clustering.spectral.kmeans
Class SpectralKMeansDriver
java.lang.Object
org.apache.hadoop.conf.Configured
org.apache.mahout.common.AbstractJob
org.apache.mahout.clustering.spectral.kmeans.SpectralKMeansDriver
- All Implemented Interfaces:
- org.apache.hadoop.conf.Configurable, org.apache.hadoop.util.Tool
public class SpectralKMeansDriver
- extends AbstractJob
Performs spectral k-means clustering on the top k eigenvectors of the input affinity matrix.
Method Summary |
static void |
main(String[] args)
|
static void |
run(org.apache.hadoop.conf.Configuration conf,
org.apache.hadoop.fs.Path input,
org.apache.hadoop.fs.Path output,
int numDims,
int clusters,
DistanceMeasure measure,
double convergenceDelta,
int maxIterations,
org.apache.hadoop.fs.Path tempDir,
boolean ssvd)
|
static void |
run(org.apache.hadoop.conf.Configuration conf,
org.apache.hadoop.fs.Path input,
org.apache.hadoop.fs.Path output,
int numDims,
int clusters,
DistanceMeasure measure,
double convergenceDelta,
int maxIterations,
org.apache.hadoop.fs.Path tempDir,
boolean ssvd,
int numReducers,
int blockHeight,
int oversampling,
int poweriters)
Run the Spectral KMeans clustering on the supplied arguments |
int |
run(String[] arg0)
|
Methods inherited from class org.apache.mahout.common.AbstractJob |
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 |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
OVERSHOOTMULTIPLIER
public static final double OVERSHOOTMULTIPLIER
- See Also:
- Constant Field Values
REDUCERS
public static final int REDUCERS
- See Also:
- Constant Field Values
BLOCKHEIGHT
public static final int BLOCKHEIGHT
- See Also:
- Constant Field Values
OVERSAMPLING
public static final int OVERSAMPLING
- See Also:
- Constant Field Values
POWERITERS
public static final int POWERITERS
- See Also:
- Constant Field Values
SpectralKMeansDriver
public SpectralKMeansDriver()
main
public static void main(String[] args)
throws Exception
- Throws:
Exception
run
public int run(String[] arg0)
throws Exception
- Throws:
Exception
run
public static void run(org.apache.hadoop.conf.Configuration conf,
org.apache.hadoop.fs.Path input,
org.apache.hadoop.fs.Path output,
int numDims,
int clusters,
DistanceMeasure measure,
double convergenceDelta,
int maxIterations,
org.apache.hadoop.fs.Path tempDir,
boolean ssvd)
throws IOException,
InterruptedException,
ClassNotFoundException
- Throws:
IOException
InterruptedException
ClassNotFoundException
run
public static void run(org.apache.hadoop.conf.Configuration conf,
org.apache.hadoop.fs.Path input,
org.apache.hadoop.fs.Path output,
int numDims,
int clusters,
DistanceMeasure measure,
double convergenceDelta,
int maxIterations,
org.apache.hadoop.fs.Path tempDir,
boolean ssvd,
int numReducers,
int blockHeight,
int oversampling,
int poweriters)
throws IOException,
InterruptedException,
ClassNotFoundException
- Run the Spectral KMeans clustering on the supplied arguments
- Parameters:
conf
- the Configuration to be usedinput
- the Path to the input tuples directoryoutput
- the Path to the output directorynumDims
- the int number of dimensions of the affinity matrixclusters
- the int number of eigenvectors and thus clusters to producemeasure
- the DistanceMeasure for the k-Means calculationsconvergenceDelta
- the double convergence delta for the k-Means calculationsmaxIterations
- the int maximum number of iterations for the k-Means calculationstempDir
- Temporary directory for intermediate calculationsssvd
- Flag to indicate the eigensolver to usenumReducers
- Number of reducersblockHeight
- oversampling
- poweriters
-
- Throws:
IOException
InterruptedException
ClassNotFoundException
Copyright © 2008–2014 The Apache Software Foundation. All rights reserved.