-
-
Notifications
You must be signed in to change notification settings - Fork 489
Different init_range #53
-
Mr Gad,
I have a problem I hope you can help me with this problem
I have 3 inputs, namely x,y,z and each input has a different starting and ending range
can this be done?
Thanks for your attention
Beta Was this translation helpful? Give feedback.
All reactions
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
-
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.
Beta Was this translation helpful? Give feedback.