You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have a question regarding the ability to check some self-defined statistics between generations during the optimization run. Specifically, I would like to know if there is a way to compute and track custom statistics as the generations evolve.
Is there a built-in feature that allows me to calculate and compare some statistics between generations?
If not, could you suggest how I might modify the source code to enable this functionality?
Any guidance or example implementations would be greatly appreciated!
Thank you for your help!
The text was updated successfully, but these errors were encountered:
You can access the fitting history by setting save_history=True in the minimize function. This flag would save every generation in the fitting progress. And then you can extract what you need for a statistical analyzation.
his=res.history# a list contains this status of every generation
Get the data you need:
first_gen_pop=his[0].pop# the first generation's whole populationfirst_gen_opt=his[0].opt# pareto front in first generationfirst_gen_pop.get('X') # the solutionsfirst_gen_pop.get('F') # the objective spaces valuesfirst_gen_opt.get('X')
first_gen_opt.get('F')
Let's draw the objective space of the first generation:
Hi,
I have a question regarding the ability to check some self-defined statistics between generations during the optimization run. Specifically, I would like to know if there is a way to compute and track custom statistics as the generations evolve.
Is there a built-in feature that allows me to calculate and compare some statistics between generations?
If not, could you suggest how I might modify the source code to enable this functionality?
Any guidance or example implementations would be greatly appreciated!
Thank you for your help!
The text was updated successfully, but these errors were encountered: