Skip to content

Commit

Permalink
Ensured all classifier tasks are given a probability column name
Browse files Browse the repository at this point in the history
  • Loading branch information
OmegaLambda1998 committed Jul 1, 2022
1 parent f8cfb2d commit f343dc5
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions pippin/aggregator.py
Original file line number Diff line number Diff line change
Expand Up @@ -90,9 +90,8 @@ def __init__(self, name, output_dir, config, dependencies, options, recal_aggtas
Task.fail_config(f"Attempting to find python file {self.python_file} but it's not there!")

merge_classifiers = self.config.get("MERGE_CLASSIFIERS")
if merge_classifiers is None:
self.classifier_merge = {c.output['name']: c.get_prob_column_name() for c in self.classifiers}
else:
self.classifier_merge = {c.output['name']: c.get_prob_column_name() for c in self.classifiers}
if merge_classifiers is not None:
self.classifier_merge = dict()
for c in self.classifiers:
prob_col = []
Expand Down

0 comments on commit f343dc5

Please sign in to comment.