Skip to content

Commit

Permalink
Remove a comment
Browse files Browse the repository at this point in the history
  • Loading branch information
bryant1410 committed Apr 29, 2023
1 parent 587c16c commit b07b8da
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions sklearn_util.py
Original file line number Diff line number Diff line change
Expand Up @@ -54,9 +54,6 @@ def _get_support_mask(self) -> np.ndarray:
mask = self.non_most_frequent_counts_ >= self.min_non_most_frequent_values

if self.leave_at_least_one and not mask.any():
# We do this because, with sklearn-pandas, when we use a `MultiLabelBinarizer` (because they are
# transformed one by one), there may be no features left afterward and the next transformers in the
# pipeline may fail for that multi-label feature.
mask[self.non_most_frequent_counts_.argmax()] = True

return mask
Expand Down

0 comments on commit b07b8da

Please sign in to comment.