From a2a6e805071ed6e51d94057d1cf0713543593a90 Mon Sep 17 00:00:00 2001 From: Alexey Stukalov Date: Sun, 29 Oct 2023 15:00:12 -0700 Subject: [PATCH] fix typo --- src/clustering_quality.jl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/clustering_quality.jl b/src/clustering_quality.jl index e1268898..9717251e 100644 --- a/src/clustering_quality.jl +++ b/src/clustering_quality.jl @@ -170,7 +170,7 @@ end # shared between calinski_harabasz and xie_beni (hard version) _inner_inertia(metric::SemiMetric, data::AbstractMatrix, centers::AbstractMatrix, assignments::AbstractVector{<:Integer}) = - sum(metric(view(data, :, i), view(center, :, clu)) for (i, clu) in enumerate(assignments)) + sum(metric(view(data, :, i), view(centers, :, clu)) for (i, clu) in enumerate(assignments)) # shared between fuzzy clustering calinski_harabasz and xie_beni (fuzzy version) function _inner_inertia(metric::SemiMetric, data::AbstractMatrix, centers::AbstractMatrix,