From 44cc8fa2b01512bc52f9456faa5cf012ac51b2df Mon Sep 17 00:00:00 2001 From: Pedro Ribeiro Date: Fri, 8 Nov 2024 18:31:42 -0500 Subject: [PATCH] Update steady_state_evolver.py --- tpot2/evolvers/steady_state_evolver.py | 1 + 1 file changed, 1 insertion(+) diff --git a/tpot2/evolvers/steady_state_evolver.py b/tpot2/evolvers/steady_state_evolver.py index c9a4714e..f077b05f 100644 --- a/tpot2/evolvers/steady_state_evolver.py +++ b/tpot2/evolvers/steady_state_evolver.py @@ -444,6 +444,7 @@ def optimize(self): print("Cancelled future (likely memory related)") scores = [np.nan for _ in range(len(self.objective_names))] eval_error = "INVALID" + client.run(gc.collect) else: #if the future is done and did not throw an error, get the scores try: scores = completed_future.result()