Skip to content

Commit

Permalink
Add more missing pub modifiers to public struct fields
Browse files Browse the repository at this point in the history
  • Loading branch information
ttytm committed Apr 8, 2024
1 parent af1abf1 commit e0772f7
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions ml/kmeans.v
Original file line number Diff line number Diff line change
Expand Up @@ -120,6 +120,7 @@ pub fn (mut o Kmeans) compute_centroids() {
}

pub struct TrainConfig {
pub:
epochs int
tol_norm_change f64
}
Expand Down
2 changes: 1 addition & 1 deletion ml/knn.v
Original file line number Diff line number Diff line change
Expand Up @@ -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
}

Expand Down

0 comments on commit e0772f7

Please sign in to comment.