@@ -54,9 +54,9 @@ pub struct VchordrqInternalBuildOptions {
5454 pub build_threads : u16 ,
5555 #[ serde( default = "VchordrqInternalBuildOptions::default_kmeans_algorithm" ) ]
5656 pub kmeans_algorithm : KMeansAlgorithm ,
57- #[ serde( default = "VchordrqInternalBuildOptions::default_kmeans_dimension_reduction " ) ]
57+ #[ serde( default = "VchordrqInternalBuildOptions::default_kmeans_dimension " ) ]
5858 #[ validate( range( min = 1 , max = 16000 ) ) ]
59- pub kmeans_dimension_reduction : Option < u32 > ,
59+ pub kmeans_dimension : Option < u32 > ,
6060}
6161
6262impl VchordrqInternalBuildOptions {
@@ -87,7 +87,7 @@ impl VchordrqInternalBuildOptions {
8787 fn default_kmeans_algorithm ( ) -> KMeansAlgorithm {
8888 KMeansAlgorithm :: Lloyd { }
8989 }
90- fn default_kmeans_dimension_reduction ( ) -> Option < u32 > {
90+ fn default_kmeans_dimension ( ) -> Option < u32 > {
9191 None
9292 }
9393}
@@ -101,7 +101,7 @@ impl Default for VchordrqInternalBuildOptions {
101101 kmeans_iterations : Self :: default_kmeans_iterations ( ) ,
102102 build_threads : Self :: default_build_threads ( ) ,
103103 kmeans_algorithm : Self :: default_kmeans_algorithm ( ) ,
104- kmeans_dimension_reduction : Self :: default_kmeans_dimension_reduction ( ) ,
104+ kmeans_dimension : Self :: default_kmeans_dimension ( ) ,
105105 }
106106 }
107107}
0 commit comments