Skip to content

Commit

Permalink
remove nclusters
Browse files Browse the repository at this point in the history
  • Loading branch information
jaksle committed Jan 23, 2024
1 parent 92b1384 commit aa534b5
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions docs/source/validate.md
Original file line number Diff line number Diff line change
Expand Up @@ -214,11 +214,11 @@ X = hcat([4., 5.] .+ 0.4 * randn(2, 10),
[9., -5.] .+ 0.4 * randn(2, 5),
[-4., -9.] .+ 1 * randn(2, 5))
nclusters = 2:5
clusterings = kmeans.(Ref(X), nclusters)
№_clu = 2:5
clusterings = kmeans.(Ref(X), №_clu)
plot((
plot(nclusters,
plot(№_clu,
clustering_quality.(Ref(X), clusterings, quality_index = qidx),
marker = :circle,
title = ":$qidx", label = nothing,
Expand All @@ -237,11 +237,11 @@ X = hcat([4., 5.] .+ 0.4 * randn(2, 10),
[-4., -9.] .+ 1 * randn(2, 5))
fuzziness = 2
fuzzy_nclusters = 2:5
fuzzy_clusterings = fuzzy_cmeans.(Ref(X), fuzzy_nclusters, fuzziness)
fuzzy_№_clu = 2:5
fuzzy_clusterings = fuzzy_cmeans.(Ref(X), fuzzy_№_clu, fuzziness)
plot((
plot(fuzzy_nclusters,
plot(fuzzy_№_clu,
clustering_quality.(Ref(X), fuzzy_clusterings,
fuzziness = fuzziness, quality_index = qidx),
marker = :circle,
Expand Down

0 comments on commit aa534b5

Please sign in to comment.