From 081037736677f4cd9f02863f822060010ed8a482 Mon Sep 17 00:00:00 2001 From: Rahil Parikh Date: Sat, 8 Apr 2023 08:19:29 +0530 Subject: [PATCH] remove sparse matrix for y: --- sklearn/linear_model/_coordinate_descent.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/sklearn/linear_model/_coordinate_descent.py b/sklearn/linear_model/_coordinate_descent.py index 7a0410cc388a2..ea1ee3115ea93 100644 --- a/sklearn/linear_model/_coordinate_descent.py +++ b/sklearn/linear_model/_coordinate_descent.py @@ -859,8 +859,7 @@ def fit(self, X, y, sample_weight=None, check_input=True): X : {ndarray, sparse matrix} of (n_samples, n_features) Data. - y : {ndarray, sparse matrix} of shape (n_samples,) or \ - (n_samples, n_targets) + y : ndarray of shape (n_samples,) or (n_samples, n_targets) Target. Will be cast to X's dtype if necessary. sample_weight : float or array-like of shape (n_samples,), default=None