Skip to content

Commit

Permalink
coef0 is a float, not an int (#12161)
Browse files Browse the repository at this point in the history
  • Loading branch information
djsutherland authored and jnothman committed Oct 14, 2018
1 parent 4a6b5b8 commit 0f128f9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions sklearn/metrics/pairwise.py
Expand Up @@ -742,7 +742,7 @@ def polynomial_kernel(X, Y=None, degree=3, gamma=None, coef0=1):
gamma : float, default None
if None, defaults to 1.0 / n_features
coef0 : int, default 1
coef0 : float, default 1
Returns
-------
Expand Down Expand Up @@ -776,7 +776,7 @@ def sigmoid_kernel(X, Y=None, gamma=None, coef0=1):
gamma : float, default None
If None, defaults to 1.0 / n_features
coef0 : int, default 1
coef0 : float, default 1
Returns
-------
Expand Down

0 comments on commit 0f128f9

Please sign in to comment.