stacker.kmeans.plot_silhouette

stacker.kmeans.plot_silhouette#

plot_silhouette(n_clusters, blind_data, outdir='')[source]#

Creates Silhouette plots to determine the best number of clusters

Parameters:
n_clustersint, default = 0

The number of clusters to form.

blind_datanp.typing.ArrayLike

A 2D numpy array containing all frames stacked together. Output of create_kmeans_input()

outfilestr

Filepath where the plot PNG file will be saved.