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

Chromosome type #259

Unanswered
sudistes4 asked this question in Q&A
Dec 22, 2023 · 1 comments · 1 reply
Discussion options

Hello !
I am working on a school project. I have difficulties to determinate the appropriate type for my chromosomes.

For the moment, our chromosome consists of a list of lists (each gene is a list containing characteristics which are strings).
I have the following issue :
ValueError: A 2D list is expected to the initail_population parameter but a (3-D) list found.

Is there any way to solve it ?

Thanks for your help

You must be logged in to vote

Replies: 1 comment 1 reply

Comment options

Hi @sudistes4,

The population must be 2D. You can build some functionalities that convert your format to a format compatible with PyGAD.

You must be logged in to vote
1 reply
Comment options

Ok, thanks !

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

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