| Modifier and Type | Class and Description |
|---|---|
static class |
AKMeans.Combine
for efficiency, combine centroids early, emitting sums and k for
centroids combined
|
static class |
AKMeans.Map
the map for approximate kmeans.
|
static class |
AKMeans.Reduce
The AKmeans reducer.
|
| Modifier and Type | Field and Description |
|---|---|
static String |
CENTROIDS_EXACT
Config option where for exact mode or not
|
static String |
CENTROIDS_K
Config option where for number of centroids K
|
static String |
CENTROIDS_PATH
Config option where for centroids path
|
| Constructor and Description |
|---|
AKMeans() |
| Modifier and Type | Method and Description |
|---|---|
static ByteCentroidsResult |
completeCentroids(String centroids,
String selected,
HadoopFastKMeansOptions options)
Given the location of a binary dump of centroids on the HDFS, load the
binary dump and construct a proper
ByteKMeans instance |
static ByteCentroidsResult |
sequenceFileToCluster(String initialCentroids,
int k)
load some initially selected centroids from
FeatureSelect as a
ByteKMeans instance |
public static final String CENTROIDS_PATH
public static final String CENTROIDS_K
public static final String CENTROIDS_EXACT
public AKMeans()
public static ByteCentroidsResult completeCentroids(String centroids, String selected, HadoopFastKMeansOptions options) throws Exception
ByteKMeans instancecentroids - selected - options - ByteKMeans for the centoirds on the HDFSExceptionpublic static ByteCentroidsResult sequenceFileToCluster(String initialCentroids, int k) throws IOException
FeatureSelect as a
ByteKMeans instanceinitialCentroids - k - ByteKMeansIOException