-
Notifications
You must be signed in to change notification settings - Fork 29
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
How to generate population from pre-defined individuals? #39
Comments
Maybe you want to use arg 'suggestions' in ga() function call. |
If I use arg suggestions in ga(), the algorithm will calculate the fitness function base on the solutions I gave or the algorithm will generate new individuals and calculate the fitness from the new ones? |
As described in the help page, the suggested solutions you provide will be included in the initial population, then the fitness function will be evaluated on that solutions and genetic operators applied as usual. |
I use GA for feature selection in machine learning and the fitness function is time-consuming. So it is better if:
|
I will go with 2nd option and uses memoization to avoid evaluating again the fitness function of already known solutions. See the vignette for an example. |
Hi!
Suppose I have 100 solutions and have selected the five best ones. How can I generate 50 new individuals from the five best ones with pcrossover = 0.8 and pmutation = 0.1?
Thank you very much!
The text was updated successfully, but these errors were encountered: