Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Small corrections in docs validate.md #271

Merged
merged 5 commits into from
Apr 14, 2024
Merged
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 8 additions & 8 deletions docs/source/validate.md
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ mutualinfo

## Clustering quality indices

[`clustering_quality()`][@ref clustering_quality] methods allow computing *intrinsic* clustering quality indices,
[`clustering_quality()`](@ref clustering_quality) methods allow computing *intrinsic* clustering quality indices,
i.e. the metrics that depend only on the clustering itself and do not use the external knowledge.
These metrics can be used to compare different clustering algorithms or choose the optimal number of clusters.

Expand Down Expand Up @@ -180,7 +180,7 @@ Higher values indicate better separation of clusters w.r.t. point distances.
silhouettes
```

[`clustering_quality(..., quality_index=:silhouettes)`][@ref clustering_quality]
[`clustering_quality(..., quality_index=:silhouettes)`](@ref clustering_quality)
provides mean silhouette metric for the datapoints. Higher values indicate better quality.

## References
Expand Down 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
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think "№" symbol typically denotes "sequential number", e.g. "cluster №3", but not the quantity of items.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I am no expert here, I always thought it is just old abbreviation for "number" with no further nuance. We can change to n_clu or something similar.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I reverted it back to nclusters

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
Loading