Skip to content

Commit 9a41f2f

Browse files
author
maheshakya
committed
modified warm_start check
1 parent f7f839b commit 9a41f2f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

sklearn/feature_selection/from_model.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -189,7 +189,7 @@ def fit(self, X, y, **fit_params):
189189
self : object
190190
Returns self.
191191
"""
192-
if not self.warm_start or not hasattr(self, "estimator_"):
192+
if not (self.warm_start and hasattr(self,"estimator_")):
193193
self.estimator_ = clone(self.estimator)
194194

195195
self.estimator_.fit(X, y, **fit_params)

0 commit comments

Comments
 (0)