Skip to content

Commit

Permalink
Update steady_state_evolver.py
Browse files Browse the repository at this point in the history
  • Loading branch information
perib authored Nov 8, 2024
1 parent cf39dbd commit 12baf2e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tpot2/evolvers/steady_state_evolver.py
Original file line number Diff line number Diff line change
Expand Up @@ -508,7 +508,7 @@ def optimize(self):
self.population.remove_invalid_from_population(column_names="Eval Error", invalid_value="TIMEOUT")

#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

###############################
# Step 2: Early Stopping
Expand Down Expand Up @@ -723,7 +723,7 @@ def optimize(self):
future.release() #release the future

#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

#checkpoint
if self.population_file is not None:
Expand Down

0 comments on commit 12baf2e

Please sign in to comment.