Skip to content

Commit

Permalink
Fix indentation
Browse files Browse the repository at this point in the history
  • Loading branch information
manuel-calzolari committed Jan 20, 2024
1 parent 294f49a commit 125e8e8
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions genetic_selection/gscv.py
Original file line number Diff line number Diff line change
Expand Up @@ -327,10 +327,10 @@ def _fit(self, X, y, groups=None):
else:
min_features = 1

if max_features < min_features:
if max_features < min_features:
max_features = min_features

if not isinstance(self.n_gen_no_change, (numbers.Integral, np.integer, type(None))):
if not isinstance(self.n_gen_no_change, (numbers.Integral, np.integer, type(None))):
raise ValueError("'n_gen_no_change' should either be None or an integer."
" {} was passed."
.format(self.n_gen_no_change))
Expand Down Expand Up @@ -384,6 +384,7 @@ def _fit(self, X, y, groups=None):
support_ = np.array(hof, dtype=bool)[0]
self.estimator_ = clone(self.estimator)
self.estimator_.fit(X[:, support_], y)

self.generation_scores_ = np.array([score for score, _, _ in log.select("max")])
self.n_features_ = support_.sum()
self.support_ = support_
Expand Down

0 comments on commit 125e8e8

Please sign in to comment.