From b07b8dae4a44b8b6576fa7d7dd8f3a63c3a3ca0e Mon Sep 17 00:00:00 2001 From: Santiago Castro Date: Sat, 29 Apr 2023 01:22:34 -0400 Subject: [PATCH] Remove a comment --- sklearn_util.py | 3 --- 1 file changed, 3 deletions(-) diff --git a/sklearn_util.py b/sklearn_util.py index 96ae1b1..a4f2eaf 100644 --- a/sklearn_util.py +++ b/sklearn_util.py @@ -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