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
This commit is contained in:
@@ -232,7 +232,7 @@ class Pipeline(StatefulBaseClass):
|
|||||||
|
|
||||||
if self.show_problem_details:
|
if self.show_problem_details:
|
||||||
pop_transformed = self.compiled_pop_transform_func(
|
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(
|
self.problem.show_details(
|
||||||
state, state.randkey, self.algorithm.forward, pop_transformed
|
state, state.randkey, self.algorithm.forward, pop_transformed
|
||||||
|
|||||||
Reference in New Issue
Block a user