8000 coef0 is a float, not an int (#12161) · scikit-learn/scikit-learn@9427c36 · GitHub
[go: up one dir, main page]

Skip to content

Commit 9427c36

Browse files
djsutherlandamueller
authored andcommitted
coef0 is a float, not an int (#12161)
1 parent 09851ac commit 9427c36

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

sklearn/metrics/pairwise.py

Lines changed: 2 addition 8000 s & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -742,7 +742,7 @@ def polynomial_kernel(X, Y=None, degree=3, gamma=None, coef0=1):
742742
gamma : float, default None
743743
if None, defaults to 1.0 / n_features
744744
745-
coef0 : int, default 1
745+
coef0 : float, default 1
746746
747747
Returns
748748
-------
@@ -776,7 +776,7 @@ def sigmoid_kernel(X, Y=None, gamma=None, coef0=1):
776776
gamma : float, default None
777777
If None, defaults to 1.0 / n_features
778778
779-
coef0 : int, default 1
779+
coef0 : float, default 1
780780
781781
Returns
782782
-------

0 commit comments

Comments
 (0)
0