Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 7922d4e

Browse files
authored
DOC remove sparse-matrix for y in ElasticNet (#26127)
1 parent 09118d9 commit 7922d4e

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

sklearn/linear_model/_coordinate_descent.py

+1-2
Original file line numberDiff line numberDiff line change
@@ -859,8 +859,7 @@ def fit(self, X, y, sample_weight=None, check_input=True):
859859
X : {ndarray, sparse matrix} of (n_samples, n_features)
860860
Data.
861861
862-
y : {ndarray, sparse matrix} of shape (n_samples,) or \
863-
(n_samples, n_targets)
862+
y : ndarray of shape (n_samples,) or (n_samples, n_targets)
864863
Target. Will be cast to X's dtype if necessary.
865864
866865
sample_weight : float or array-like of shape (n_samples,), default=None

0 commit comments

Comments
 (0)