From e0772f794a374273d1f9e9d5c7638a9479d2dacc Mon Sep 17 00:00:00 2001 From: Turiiya <34311583+ttytm@users.noreply.github.com> Date: Tue, 9 Apr 2024 00:39:59 +0200 Subject: [PATCH] Add more missing `pub` modifiers to public struct fields --- ml/kmeans.v | 1 + ml/knn.v | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/ml/kmeans.v b/ml/kmeans.v index cc30f1968..9e869916a 100644 --- a/ml/kmeans.v +++ b/ml/kmeans.v @@ -120,6 +120,7 @@ pub fn (mut o Kmeans) compute_centroids() { } pub struct TrainConfig { +pub: epochs int tol_norm_change f64 } diff --git a/ml/knn.v b/ml/knn.v index 6d95a0375..407cbfec0 100644 --- a/ml/knn.v +++ b/ml/knn.v @@ -109,9 +109,9 @@ pub fn (mut knn KNN) train() { // data needed for KNN.predict pub struct PredictConfig { +pub: max_iter int k int -mut: to_pred []f64 }