diff --git a/sklearn/linear_model/stochastic_gradient.py b/sklearn/linear_model/stochastic_gradient.py index 13b5de535daddc168e5e1133731e7a7d3ad5a4c0..7758656dc19efc9fc0e0df0b61c8fd492e222323 100644 --- a/sklearn/linear_model/stochastic_gradient.py +++ b/sklearn/linear_model/stochastic_gradient.py @@ -78,8 +78,8 @@ class BaseSGD(six.with_metaclass(ABCMeta, BaseEstimator, SparseCoefMixin)): elif tol is None and max_iter is None: warnings.warn( "max_iter and tol parameters have been added in %s in 0.19. If" - "both are left unset, they default to max_iter=5 and tol=None." - " If tol is not None, max_iter defaults to max_iter=1000. " + " both are left unset, they default to max_iter=5 and tol=None" + ". If tol is not None, max_iter defaults to max_iter=1000. " "From 0.21, default max_iter will be 1000, " "and default tol will be 1e-3." % type(self), FutureWarning) # Before 0.19, default was n_iter=5