Closed LSYS closed 3 years ago
Hi @LSYS - thank you for checking out Yellowbrick and trying out the SilhouetteVisualizer. The reason you are running into this error is because unlike most of the clustering algorithms in scikit-learn, the Spectral Clustering algorithm does not have a predict() method, which is used to get the labels that are subsequently used to get the silhouette scores.
Closing due to inactivity.
When I try to do it, I get the following error:
AttributeError: 'SpectralClustering' object has no attribute 'predict'