geosnap.analyze.ModelResults.plot_silhouette

ModelResults.plot_silhouette(metric='euclidean', title='Silhouette Score')[source]

Create a diagnostic plot of silhouette scores using scikit-plot.

Parameters:
metricstr, optional

metric used to calculate distance. Accepts any string used with sklearn.metrics.pairwise

titlestr, optional

title passed to the matplotlib figure. Defaults to “Silhouette Score”

Returns:
matplotlib.Figure

silhouette plot created by scikit-plot.