KMeansDriver.run(conf, getTestTempDirPath("testdata"), initialPoints, kmeansOutput, 0.001, 10, true, 0.0, false);
// Print out clusters
ClusterDumper clusterDumper = new ClusterDumper(finalClusterPath(conf,
output, 10), new Path(kmeansOutput, "clusteredPoints"));
clusterDumper.setOutputFormat(ClusterDumper.OUTPUT_FORMAT.JSON);
clusterDumper.printClusters(termDictionary);
}
@Test
public void testFuzzyKmeans() throws Exception {
DistanceMeasure measure = new EuclideanDistanceMeasure();