From 12baf2e78cbfd9d1f3bc980ee2f1b5396fa73c05 Mon Sep 17 00:00:00 2001 From: Pedro Ribeiro Date: Fri, 8 Nov 2024 18:25:22 -0500 Subject: [PATCH] Update steady_state_evolver.py --- tpot2/evolvers/steady_state_evolver.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tpot2/evolvers/steady_state_evolver.py b/tpot2/evolvers/steady_state_evolver.py index c7885ec6..c9a4714e 100644 --- a/tpot2/evolvers/steady_state_evolver.py +++ b/tpot2/evolvers/steady_state_evolver.py @@ -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 @@ -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: