Skip to content

Commit

Permalink
Merge pull request scikit-learn#5880 from jakevdp/spectral-doc
Browse files Browse the repository at this point in the history
[MRG+1] DOC: clarify terms in documentation of Spectral Clustering
  • Loading branch information
glouppe committed Feb 11, 2016
2 parents b7b6ac1 + 2d7b5cf commit d6ebe74
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion sklearn/cluster/spectral.py
Original file line number Diff line number Diff line change
Expand Up @@ -368,7 +368,10 @@ class SpectralClustering(BaseEstimator, ClusterMixin):
similarity matrix that is well suited for the algorithm by
applying the Gaussian (RBF, heat) kernel::
np.exp(- X ** 2 / (2. * delta ** 2))
np.exp(- dist_matrix ** 2 / (2. * delta ** 2))
Where ``delta`` is a free parameter representing the width of the Gaussian
kernel.
Another alternative is to take a symmetric version of the k
nearest neighbors connectivity matrix of the points.
Expand Down

0 comments on commit d6ebe74

Please sign in to comment.