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
Implementation of the EigenCuts spectral clustering algorithm.
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)
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, 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 |
OVERSHOOT_MULTIPLIER
public static final double OVERSHOOT_MULTIPLIER
- 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 IOException,
ClassNotFoundException,
InstantiationException,
IllegalAccessException,
InterruptedException
- Throws:
IOException
ClassNotFoundException
InstantiationException
IllegalAccessException
InterruptedException
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)
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 calculations
- Throws:
IOException
InterruptedException
ClassNotFoundException
Copyright © 2008-2012 The Apache Software Foundation. All Rights Reserved.