Skip to content

Commit

Permalink
fix kmeans.v (#199)
Browse files Browse the repository at this point in the history
  • Loading branch information
yuyi98 committed Feb 21, 2024
1 parent dd16294 commit 89dda60
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ml/kmeans.v
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ pub fn Kmeans.new(mut data Data[f64], nb_classes int, name string) &Kmeans {

// bins
ndiv := [10, 10] // TODO: make this a parameter
bins := gm.Bins.new(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.Bins.new(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
Expand Down

0 comments on commit 89dda60

Please sign in to comment.