From e7a0a6ad85b20884f4612dd64a075dedb832cac1 Mon Sep 17 00:00:00 2001 From: abigailt Date: Sun, 24 Dec 2023 17:26:09 -0500 Subject: [PATCH] Formatting Signed-off-by: abigailt --- apt/minimization/minimizer.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/apt/minimization/minimizer.py b/apt/minimization/minimizer.py index f0d2840..7841d36 100644 --- a/apt/minimization/minimizer.py +++ b/apt/minimization/minimizer.py @@ -757,8 +757,8 @@ class GeneralizeToRepresentative(BaseEstimator, MetaEstimatorMixin, TransformerM new_cell['categories'][other_feature] = [0] elif len(encoded) == 2: new_cell['categories'][other_feature] = [1] - elif (other_feature not in new_cell['categories'].keys() or - len(new_cell['categories'][other_feature]) == 0): + elif (other_feature not in new_cell['categories'].keys() + or len(new_cell['categories'][other_feature]) == 0): new_cell['categories'][other_feature] = [0, 1] else: if feature in cell['ranges'].keys():