Skip to content

Commit 724652e

Browse files
committed
corrected doctests after moving L2 penalty application in SGD
1 parent 38c31d4 commit 724652e

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

doc/modules/sgd.rst

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@ SGD fits a linear model to the training data. The member ``coef_`` holds
7878
the model parameters::
7979

8080
>>> clf.coef_
81-
array([[ 9.90090187, 9.90090187]])
81+
array([[ 9.91080278, 9.91080278]])
8282

8383
Member ``intercept_`` holds the intercept (aka offset or bias)::
8484

@@ -91,7 +91,7 @@ hyperplane, is controlled by the parameter ``fit_intercept``.
9191
To get the signed distance to the hyperplane use :meth:`SGDClassifier.decision_function`::
9292

9393
>>> clf.decision_function([[2., 2.]])
94-
array([ 29.61357756])
94+
array([ 29.65318117])
9595

9696
The concrete loss function can be set via the ``loss``
9797
parameter. :class:`SGDClassifier` supports the following loss functions:
@@ -112,7 +112,7 @@ In the case of binary classification and ``loss="log"`` or
112112

113113
>>> clf = SGDClassifier(loss="log").fit(X, y)
114114
>>> clf.predict_proba([[1., 1.]])
115-
array([[ 0.00000051, 0.99999949]])
115+
array([[ 0.0000005, 0.9999995]])
116116

117117
The concrete penalty can be set via the ``penalty`` parameter.
118118
SGD supports the following penalties:

0 commit comments

Comments
 (0)