8000 remove obsolete `sparse_coef_` doc string · seckcoder/scikit-learn@746d686 · GitHub
[go: up one dir, main page]

Skip to content

Commit 746d686

Browse files
committed
remove obsolete sparse_coef_ doc string
1 parent 5b00f44 commit 746d686

File tree

1 file changed

+0
-6
lines changed

1 file changed

+0
-6
lines changed

sklearn/linear_model/sparse/stochastic_gradient.py

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -111,10 +111,6 @@ class SGDClassifier(BaseSGDClassifier):
111111
`intercept_` : array, shape = [1] if n_classes == 2 else [n_classes]
112112
Constants in decision function.
113113
114-
`sparse_coef_` : sparse.csr_matrix, , shape = [1, n_features]
115-
if n_classes == 2 else [n_classes, n_features]
116-
Weights represented as Row Compressed Matrix.
117-
118114
Examples
119115
--------
120116
>>> import numpy as np
@@ -169,7 +165,6 @@ def _fit_binary(self, X, y, sample_weight):
169165
self.learning_rate_code,
170166
self.eta0, self.power_t)
171167

172-
# update self.coef_ and self.sparse_coef_ consistently
173168
self._set_coef(coef_)
174169
self.intercept_ = np.asarray(intercept_)
175170

@@ -356,6 +351,5 @@ def _fit_regressor(self, X, y, sample_weight):
356351
self.learning_rate_code,
357352
self.eta0, self.power_t)
358353

359-
# update self.coef_ and self.sparse_coef_ consistently
360354
self.coef_ = coef_
361355
self.intercept_ = np.asarray(intercept_)

0 commit comments

Comments
 (0)
0