As the title says, i want to use fitness scalling methods, such as sigma scalling, for i'm having problems with premature genetic conversion in non-optimal solutions.
I know that PyGAD has a on_fitness
method that is called after the fitness values for all my individuals are calculated, and think i could use to solve my problem with it, but could not verify. Can i use it for this purpose?
Thanks for your input.
on_fitness()
huh. I though it wasn't possible due to what i saw in exemples from PyGAD, where it only shows someprint()
as a result, didn't know you could also return something. Thank you. – yna ponte May 02 '23 at 14:28