Skip to content

Different init_range #53

Closed Answered by ahmedfgad
itmamdiyar26 asked this question in Q&A
Discussion options

You must be logged in to vote

Hi @itmamdiyar26,

This feature is already supported in PyGAD using the gene_space parameter.

Here is an example to have a range of discrete (integers only) values.

gene_space=[range(-5, 10), range(50, 70), range(3, 18)]

Read this for more information: https://pygad.readthedocs.io/en/latest/README_pygad_ReadTheDocs.html#more-about-the-gene-space-parameter

Please ask if you have any questions.

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by ahmedfgad
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
question Further information is requested
2 participants