Skip to content

Commit

Permalink
Update exhaustive_feature_selector.py
Browse files Browse the repository at this point in the history
AttributeError: `np.NINF` was removed in the NumPy 2.0 release. Use `-np.inf` instead.
Fixed this Error.
  • Loading branch information
Haider010 authored Sep 17, 2024
1 parent d9713ea commit c5bd78e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion mlxtend/feature_selection/exhaustive_feature_selector.py
Original file line number Diff line number Diff line change
Expand Up @@ -483,7 +483,7 @@ def ncr(n, r):
return self

def finalize_fit(self):
max_score = np.NINF
max_score = -np.inf
for c in self.subsets_:
if self.subsets_[c]["avg_score"] > max_score:
best_subset = c
Expand Down

0 comments on commit c5bd78e

Please sign in to comment.