From 096c648fe0a38be42a2f8d103563933bac0ba679 Mon Sep 17 00:00:00 2001 From: yuyi Date: Wed, 21 Feb 2024 22:46:21 +0800 Subject: [PATCH] fix kmeans.v --- ml/kmeans.v | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ml/kmeans.v b/ml/kmeans.v index fb1638abe..1beb1cc9d 100644 --- a/ml/kmeans.v +++ b/ml/kmeans.v @@ -32,7 +32,7 @@ pub fn new_kmeans(mut data Data[f64], nb_classes int, name string) &Kmeans { // bins ndiv := [10, 10] // TODO: make this a parameter - bins := gm.new_bins(stat.min_x, stat.max_x, ndiv) // TODO: make sure minx and maxx are 2D or 3D; i.e. nb_features ≤ 2 + mut bins := gm.new_bins(stat.min_x, stat.max_x, ndiv) // TODO: make sure minx and maxx are 2D or 3D; i.e. nb_features ≤ 2 mut o := Kmeans{ name: name data: data