Skip to content

Commit 3de9a7a

Browse files
authored
MNT - fix regression introduced in #270 (#304)
1 parent 3ea6a83 commit 3de9a7a

File tree

1 file changed

+0
-5
lines changed

1 file changed

+0
-5
lines changed

skglm/estimators.py

-5
Original file line numberDiff line numberDiff line change
@@ -102,11 +102,6 @@ def _glm_fit(X, y, model, datafit, penalty, solver):
102102

103103
n_samples, n_features = X_.shape
104104

105-
if issparse(X):
106-
datafit.initialize_sparse(X_.data, X_.indptr, X_.indices, y)
107-
else:
108-
datafit.initialize(X_, y)
109-
110105
# if model.warm_start and hasattr(model, 'coef_') and model.coef_ is not None:
111106
if solver.warm_start and hasattr(model, 'coef_') and model.coef_ is not None:
112107
if isinstance(datafit, QuadraticSVC):

0 commit comments

Comments
 (0)