mardi 20 février 2018

How to get my population for a genetic algorithm from list of arrays in DEAP Python

I have program which produces list of lists as output:

[[1, 0, 1, 1,...], [..],...]

I want each array in this list to be treated as chromosome and my initial population to be selected from this list of lists as I put number of chromosomes I need for initial population.

I am using deap with Python 3.6.




Aucun commentaire:

Enregistrer un commentaire