File tree Expand file tree Collapse file tree 2 files changed +7
-7
lines changed
server/src/main/java/org/elasticsearch/index/codec/vectors Expand file tree Collapse file tree 2 files changed +7
-7
lines changed Original file line number Diff line number Diff line change @@ -405,9 +405,9 @@ public int size() {
405
405
// this are small numbers so we run it wih all the centroids.
406
406
final KMeansResult kMeansResult = new HierarchicalKMeans (
407
407
fieldInfo .getVectorDimension (),
408
- 6 ,
409
- floatVectorValues . size () ,
410
- floatVectorValues . size () ,
408
+ HierarchicalKMeans . MAX_ITERATIONS_DEFAULT ,
409
+ HierarchicalKMeans . SAMPLES_PER_CLUSTER_DEFAULT ,
410
+ HierarchicalKMeans . MAXK ,
411
411
-1 // disable SOAR assignments
412
412
).cluster (floatVectorValues , centroidsPerParentCluster );
413
413
final int [] centroidVectorCount = new int [kMeansResult .centroids ().length ];
Original file line number Diff line number Diff line change 19
19
*/
20
20
public class HierarchicalKMeans {
21
21
22
- static final int MAXK = 128 ;
23
- static final int MAX_ITERATIONS_DEFAULT = 6 ;
24
- static final int SAMPLES_PER_CLUSTER_DEFAULT = 64 ;
25
- static final float DEFAULT_SOAR_LAMBDA = 1.0f ;
22
+ public static final int MAXK = 128 ;
23
+ public static final int MAX_ITERATIONS_DEFAULT = 6 ;
24
+ public static final int SAMPLES_PER_CLUSTER_DEFAULT = 64 ;
25
+ public static final float DEFAULT_SOAR_LAMBDA = 1.0f ;
26
26
27
27
final int dimension ;
28
28
final int maxIterations ;
You can’t perform that action at this time.
0 commit comments