We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3893098 commit 1f2d053Copy full SHA for 1f2d053
server/src/main/java/org/elasticsearch/index/codec/vectors/cluster/KMeans.java
@@ -37,7 +37,7 @@ class KMeans {
37
* @return randomly selected centroids that are the min of centroidCount and sampleSize
38
* @throws IOException is thrown if vectors is inaccessible
39
*/
40
- static float[][] pickInitialCentroids(FloatVectorValues vectors, int m, int centroidCount) throws IOException {
+ static float[][] pickInitialCentroids(FloatVectorValues vectors, int centroidCount) throws IOException {
41
Random random = new Random(42L);
42
int centroidsSize = Math.min(vectors.size(), centroidCount);
43
float[][] centroids = new float[centroidsSize][vectors.dimension()];
0 commit comments