Example usage for org.apache.mahout.math.neighborhood FastProjectionSearch FastProjectionSearch

List of usage examples for org.apache.mahout.math.neighborhood FastProjectionSearch FastProjectionSearch

Introduction

In this page you can find the example usage for org.apache.mahout.math.neighborhood FastProjectionSearch FastProjectionSearch.

Prototype

public FastProjectionSearch(DistanceMeasure distanceMeasure, int numProjections, int searchSize) 

Source Link

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);
}