From 3a608c103df96f7304d4717f4fe649f393034761 Mon Sep 17 00:00:00 2001 From: perib Date: Fri, 22 Mar 2024 17:06:18 -0700 Subject: [PATCH] removed unused var, quick fix for printing invalid inds --- .../graph_pipeline_individual/individual.py | 5 ++++- tpot2/utils/eval_utils.py | 1 - 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/tpot2/individual_representations/graph_pipeline_individual/individual.py b/tpot2/individual_representations/graph_pipeline_individual/individual.py index f890e80f..9ca1a9da 100644 --- a/tpot2/individual_representations/graph_pipeline_individual/individual.py +++ b/tpot2/individual_representations/graph_pipeline_individual/individual.py @@ -1137,7 +1137,10 @@ def _cached_transform(cache_nunber=0): pass def __str__(self): - return self.export_pipeline().__str__() + try: + return f"" def unique_id(self) -> GraphKey: if self.key is None: diff --git a/tpot2/utils/eval_utils.py b/tpot2/utils/eval_utils.py index 64f490e4..ccc847f3 100644 --- a/tpot2/utils/eval_utils.py +++ b/tpot2/utils/eval_utils.py @@ -152,7 +152,6 @@ def parallel_eval_objective_list2(individual_list, submitted_futures = {} scores_dict = {} submitted_inds = set() - eval_error = None while len(submitted_futures) < max_queue_size and len(individual_stack)>0: individual = individual_stack.pop() future = client.submit(eval_objective_list, individual, objective_list, verbose=verbose, timeout=max_eval_time_seconds,**objective_kwargs)