public final class ClusterIterator extends Object
| Modifier and Type | Field and Description |
|---|---|
static String |
PRIOR_PATH_KEY |
| Modifier and Type | Method and Description |
|---|---|
static ClusterClassifier |
iterate(Iterable<Vector> data,
ClusterClassifier classifier,
int numIterations)
Iterate over data using a prior-trained ClusterClassifier, for a number of iterations
|
static void |
iterateMR(org.apache.hadoop.conf.Configuration conf,
org.apache.hadoop.fs.Path inPath,
org.apache.hadoop.fs.Path priorPath,
org.apache.hadoop.fs.Path outPath,
int numIterations)
Iterate over data using a prior-trained ClusterClassifier, for a number of iterations using a mapreduce
implementation
|
static void |
iterateSeq(org.apache.hadoop.conf.Configuration conf,
org.apache.hadoop.fs.Path inPath,
org.apache.hadoop.fs.Path priorPath,
org.apache.hadoop.fs.Path outPath,
int numIterations)
Iterate over data using a prior-trained ClusterClassifier, for a number of iterations using a sequential
implementation
|
public static final String PRIOR_PATH_KEY
public static ClusterClassifier iterate(Iterable<Vector> data, ClusterClassifier classifier, int numIterations)
data - a List<Vector> of input vectorsclassifier - a prior ClusterClassifiernumIterations - the int number of iterations to performpublic static void iterateSeq(org.apache.hadoop.conf.Configuration conf,
org.apache.hadoop.fs.Path inPath,
org.apache.hadoop.fs.Path priorPath,
org.apache.hadoop.fs.Path outPath,
int numIterations)
throws IOException
conf - the ConfigurationinPath - a Path to input VectorWritablespriorPath - a Path to the prior classifieroutPath - a Path of output directorynumIterations - the int number of iterations to performIOExceptionpublic static void iterateMR(org.apache.hadoop.conf.Configuration conf,
org.apache.hadoop.fs.Path inPath,
org.apache.hadoop.fs.Path priorPath,
org.apache.hadoop.fs.Path outPath,
int numIterations)
throws IOException,
InterruptedException,
ClassNotFoundException
conf - the ConfigurationinPath - a Path to input VectorWritablespriorPath - a Path to the prior classifieroutPath - a Path of output directorynumIterations - the int number of iterations to performIOExceptionInterruptedExceptionClassNotFoundExceptionCopyright © 2008–2017 The Apache Software Foundation. All rights reserved.