Skip to content

Commit 108a0c2

Browse files
committed
Added default gamma info for laplacian_kernel and rbf_kernel
1 parent f63ac6e commit 108a0c2

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

sklearn/metrics/pairwise.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -796,7 +796,7 @@ def rbf_kernel(X, Y=None, gamma=None):
796796
797797
Y : array of shape (n_samples_Y, n_features)
798798
799-
gamma : float
799+
gamma : float (default = 1.0 / n_samples_X)
800800
801801
Returns
802802
-------
@@ -828,7 +828,7 @@ def laplacian_kernel(X, Y=None, gamma=None):
828828
----------
829829
X : array of shape (n_samples_X, n_features)
830830
Y : array of shape (n_samples_Y, n_features)
831-
gamma : float
831+
gamma : float (default = 1.0 / n_samples_X)
832832
833833
Returns
834834
-------

0 commit comments

Comments
 (0)