-
-
Notifications
You must be signed in to change notification settings - Fork 489
-
Can you provide me with an example of how to implement a selection function that selects the parents from a Boltzmann distribution? I was reading this article in which they use a Boltzmann selection method, and I would like to replicate their results using PyGad, but I'm not sure how to properly implement.
Beta Was this translation helpful? Give feedback.
All reactions
Replies: 1 comment
-
There is no example yet about selecting parents using Boltzmann distribution.
But you can create a custom parent selection function/method and assign it to the parent_selection_type
parameter. This is a dummy example:
def parent_selection_func(fitness, num_parents, ga_instance):
Beta Was this translation helpful? Give feedback.
All reactions
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment