Package org.apache.mahout.knn

Examples of org.apache.mahout.knn.LumpyData.sample()


          continue;
        }
        final Matrix data = new DenseMatrix(dataSize + querySize, d);
        final LumpyData clusters = new LumpyData(d, 0.05, 10);
        for (MatrixSlice row : data) {
          row.vector().assign(clusters.sample());
        }

        Matrix q = data.viewPart(0, querySize, 0, d);
        Matrix m = data.viewPart(querySize, dataSize, 0, d);
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.