DOC fix doctest
@@ -505,9 +505,10 @@ Spectral Clustering can also be used to cluster graphs by their spectral
embeddings. In this case, the affinity matrix is the adjacency matrix of the
graph, and SpectralClustering is initialized with `affinity='precomputed'`::
+ >>> from sklearn.cluster import SpectralClustering
>>> sc = SpectralClustering(k, affinity='precomputed', n_init=100,
... assign_labels='discretize')
- >>> sc.fit_predict(adjacency_matrix)
+ >>> sc.fit_predict(adjacency_matrix) # doctest: +SKIP
.. topic:: References:
