Skip to content

Commit

Permalink
Update eval_utils.py
Browse files Browse the repository at this point in the history
  • Loading branch information
perib authored Nov 8, 2024
1 parent 7c0e947 commit cf39dbd
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tpot2/utils/eval_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -228,7 +228,7 @@ def parallel_eval_objective_list(individual_list,


#I am not entirely sure if this is necessary. I believe that calling release on the futures should be enough to free up memory. If memory issues persist, this may be a good place to start.
client.run(gc.collect) #run garbage collection to free up memory
#client.run(gc.collect) #run garbage collection to free up memory

#break if timeout
if global_timeout_triggered:
Expand All @@ -252,7 +252,7 @@ def parallel_eval_objective_list(individual_list,
submitted_inds.add(individual.unique_id())

#I am not entirely sure if this is necessary. I believe that calling release on the futures should be enough to free up memory. If memory issues persist, this may be a good place to start.
client.run(gc.collect) #run garbage collection to free up memory
#client.run(gc.collect) #run garbage collection to free up memory

#collect remaining futures
final_scores = [scores_dict[individual]["scores"] for individual in individual_list]
Expand Down

0 comments on commit cf39dbd

Please sign in to comment.