Skip to content

Commit 94c7881

Browse files
pprettGaelVaroquaux
authored andcommitted
cosmit
1 parent 7ea873b commit 94c7881

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

sklearn/linear_model/stochastic_gradient.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -540,8 +540,9 @@ def decision_function(self, X):
540540
return self._decision_function(X)
541541

542542
def _decision_function(self, X):
543-
"""predict decision function assuming that X is either sparse
544-
matrix or array-like.
543+
"""Compute decision function values for each sample in X.
544+
545+
X is assumed to be either sparse matrix or array-like.
545546
"""
546547
scores = safe_sparse_dot(X, self.coef_.T) + self.intercept_
547548
if self.classes_.shape[0] == 2:

0 commit comments

Comments
 (0)