Question about optimal number of clusters

As is known to all, clustering is a kind of unsupervised learning method, including k-means, DBSCAN, etc., where the class number of clustering “K” needs to be set in advance.
There are many ways to estimate the best “k”, such as BIC(Bayesian Information Criterions), SIL(Silhouette), WCSS(Within Cluster Sum of Squared), DBI(Davies Bouldin Index),elbow method, and so on.
But I can’t find the relevant package in Julia.
Could you recommend some related Pkg to find the optimal number of clustering classes?thanks!!!

https://github.com/JuliaStats/Clustering.jl has some of them according to their readme

1 Like

I’ve noticed this Pkg, but it doesn’t have a detailed example, and I don’t know how to input the variables in the function.

Also, I noticed that Python has a lot of these Pkg, and I tried to call Python’s Pkg, but it went wrong.

using PyCall
TS = pyimport("tslearn")

image