Skip to content

Commit cc6e252

Browse files
committed
Revert "remove nclusters"
This reverts commit aa534b5.
1 parent aa534b5 commit cc6e252

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

docs/source/validate.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -214,11 +214,11 @@ X = hcat([4., 5.] .+ 0.4 * randn(2, 10),
214214
[9., -5.] .+ 0.4 * randn(2, 5),
215215
[-4., -9.] .+ 1 * randn(2, 5))
216216
217-
№_clu = 2:5
218-
clusterings = kmeans.(Ref(X), №_clu)
217+
hard_nclusters = 2:5
218+
clusterings = kmeans.(Ref(X), hard_nclusters)
219219
220220
plot((
221-
plot(№_clu,
221+
plot(hard_nclusters,
222222
clustering_quality.(Ref(X), clusterings, quality_index = qidx),
223223
marker = :circle,
224224
title = ":$qidx", label = nothing,
@@ -237,11 +237,11 @@ X = hcat([4., 5.] .+ 0.4 * randn(2, 10),
237237
[-4., -9.] .+ 1 * randn(2, 5))
238238
239239
fuzziness = 2
240-
fuzzy_№_clu = 2:5
241-
fuzzy_clusterings = fuzzy_cmeans.(Ref(X), fuzzy_№_clu, fuzziness)
240+
fuzzy_nclusters = 2:5
241+
fuzzy_clusterings = fuzzy_cmeans.(Ref(X), fuzzy_nclusters, fuzziness)
242242
243243
plot((
244-
plot(fuzzy_№_clu,
244+
plot(fuzzy_nclusters,
245245
clustering_quality.(Ref(X), fuzzy_clusterings,
246246
fuzziness = fuzziness, quality_index = qidx),
247247
marker = :circle,

0 commit comments

Comments
 (0)