Skip to content

Commit 725f8b3

Browse files
committed
rm unnecessary init
1 parent 3ea6a83 commit 725f8b3

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

skglm/estimators.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -102,10 +102,10 @@ 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)
105+
# if issparse(X):
106+
# datafit.initialize_sparse(X_.data, X_.indptr, X_.indices, y)
107+
# else:
108+
# datafit.initialize(X_, y)
109109

110110
# if model.warm_start and hasattr(model, 'coef_') and model.coef_ is not None:
111111
if solver.warm_start and hasattr(model, 'coef_') and model.coef_ is not None:

0 commit comments

Comments
 (0)