In update koan there is
pub fn compute_centroids(
n_centroids: usize,
// (n_observations, n_features)
observations: &ArrayBase<impl Data<Elem = f64>, Ix2>,
// (n_observations,)
cluster_memberships: &ArrayBase<impl Data<Elem = usize>, Ix1>,
) -> Array2<f64> {
but here the n_centroids is not being used for anything in the solution, and thus it doesn't seem necessary. Maybe there is a bug here?
In update koan there is
but here the
n_centroidsis not being used for anything in the solution, and thus it doesn't seem necessary. Maybe there is a bug here?