Skip to content

Commit 0ee08ab

Browse files
Hossein Pourbozorgjnothman
authored andcommitted
DOC add missing kernels to pairwise_kernels (scikit-learn#13746)
1 parent a8ebcf3 commit 0ee08ab

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

sklearn/metrics/pairwise.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1664,7 +1664,8 @@ def pairwise_kernels(X, Y=None, metric="linear", filter_params=False,
16641664
kernel between the arrays from both X and Y.
16651665
16661666
Valid values for metric are::
1667-
['rbf', 'sigmoid', 'polynomial', 'poly', 'linear', 'cosine']
1667+
['additive_chi2', 'chi2', 'linear', 'poly', 'polynomial', 'rbf',
1668+
'laplacian', 'sigmoid', 'cosine']
16681669
16691670
Read more in the :ref:`User Guide <metrics>`.
16701671

0 commit comments

Comments
 (0)