Example usage for org.apache.mahout.clustering.streaming.cluster StreamingKMeans StreamingKMeans

List of usage examples for org.apache.mahout.clustering.streaming.cluster StreamingKMeans StreamingKMeans

Introduction

In this page you can find the example usage for org.apache.mahout.clustering.streaming.cluster StreamingKMeans StreamingKMeans.

Prototype

public StreamingKMeans(UpdatableSearcher searcher, int numClusters, double distanceCutoff) 

Source Link

Document

Calls StreamingKMeans(searcher, numClusters, distanceCutoff, 1.3, 10, 2).

Usage

From source file:org.plista.kornakapi.core.training.StramingKMeansClusterer.java

License:Apache License

public StramingKMeansClusterer(StreamingKMeansClassifierModel model, int clusters, long cutoff) {
    this.model = model;
    this.clusters = clusters;
    this.cutoff = cutoff;
    UpdatableSearcher searcher = new FastProjectionSearch(new ManhattanDistanceMeasure(), 10, 10);
    clusterer = new StreamingKMeans(searcher, clusters, cutoff);
}