From 287151bf00033d40ae13e41af456d125820bb6f8 Mon Sep 17 00:00:00 2001 From: williamgt Date: Mon, 10 Mar 2025 12:01:14 +0100 Subject: [PATCH] Does not request the new population from state, instead use the previous population to evaluate the show_details function from Problem, reflecting which generation is used for printing fitness in the prior part of this function --- src/tensorneat/pipeline.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/tensorneat/pipeline.py b/src/tensorneat/pipeline.py index 95b1ce3..867593b 100644 --- a/src/tensorneat/pipeline.py +++ b/src/tensorneat/pipeline.py @@ -232,7 +232,7 @@ class Pipeline(StatefulBaseClass): if self.show_problem_details: pop_transformed = self.compiled_pop_transform_func( - state, self.algorithm.ask(state) + state, pop #using previous pop instead of requesting the new one from state here ) self.problem.show_details( state, state.randkey, self.algorithm.forward, pop_transformed