ClusterClassifier prior = new ClusterClassifier(initialClusters);
Path priorClassifier = new Path(output, "clusters-0");
writeClassifier(prior, conf, priorClassifier);
int maxIter = 10;
ClusteringPolicy policy = new KMeansClusteringPolicy();
new ClusterIterator(policy).iterateSeq(samples, priorClassifier, output, maxIter);
for (int i = 1; i <= maxIter; i++) {
ClusterClassifier posterior = readClassifier(conf, new Path(output, "classifier-" + i));
CLUSTERS.add(posterior.getModels());
}