Skip to content

Commit

Permalink
removed unused var, quick fix for printing invalid inds
Browse files Browse the repository at this point in the history
  • Loading branch information
perib committed Mar 23, 2024
1 parent ac61118 commit 3a608c1
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -1137,7 +1137,10 @@ def _cached_transform(cache_nunber=0):
pass

def __str__(self):
return self.export_pipeline().__str__()
try:
return f"<GraphIdnividual {0}".format(self.export_pipeline().__str__())
except:
return "<Invalid GraphIdnividual>"

def unique_id(self) -> GraphKey:
if self.key is None:
Expand Down
1 change: 0 additions & 1 deletion tpot2/utils/eval_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 3a608c1

Please sign in to comment.