Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Plot Fitness Function for all evaluated points #67

Open
koehlerson opened this issue Aug 18, 2020 · 1 comment
Open

Plot Fitness Function for all evaluated points #67

koehlerson opened this issue Aug 18, 2020 · 1 comment

Comments

@koehlerson
Copy link

koehlerson commented Aug 18, 2020

Hey there,
I'm using Evolutionary, great package, so thanks for developing it. I was wondering if it's possible by a callback or something like that, to save all individuals and their associated fitness function values? Since I'm only solving a 2 dimensional Problem and this in fact very often, it would be nice to get an Idea of how multi-modal my function is and thus, I would like to plot the fitness function over the 2D parameter space.

@wildart
Copy link
Owner

wildart commented Aug 21, 2020

Implement custom trace! method (https://wildart.github.io/Evolutionary.jl/dev/tutorial/#Trace-1). The population parameter is an array of the individuals, and the state should contain their fitness (see the particular algorithm implementation). There exist a test for that functionality, you can use it as an example.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants