Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Example of a Boltzmann Selection Function #273

Unanswered
chadb56 asked this question in Q&A
Discussion options

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.

You must be logged in to vote

Replies: 1 comment

Comment options

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):
You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet

AltStyle によって変換されたページ (->オリジナル) /