Skip to content

Commit aa534b5

Browse files
committed
remove nclusters
1 parent 92b1384 commit aa534b5

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-
nclusters = 2:5
218-
clusterings = kmeans.(Ref(X), nclusters)
217+
№_clu = 2:5
218+
clusterings = kmeans.(Ref(X), №_clu)
219219
220220
plot((
221-
plot(nclusters,
221+
plot(№_clu,
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_nclusters = 2:5
241-
fuzzy_clusterings = fuzzy_cmeans.(Ref(X), fuzzy_nclusters, fuzziness)
240+
fuzzy_№_clu = 2:5
241+
fuzzy_clusterings = fuzzy_cmeans.(Ref(X), fuzzy_№_clu, fuzziness)
242242
243243
plot((
244-
plot(fuzzy_nclusters,
244+
plot(fuzzy_№_clu,
245245
clustering_quality.(Ref(X), fuzzy_clusterings,
246246
fuzziness = fuzziness, quality_index = qidx),
247247
marker = :circle,

0 commit comments

Comments
 (0)