Python Deap library, how to access initRepeat mapping
问题 What I want my algorithm to do I want to have a bunch of random words as individuals in my population, whos fitness is compared to an "optimal" word. If the length of the words are equivalent, that's +1 in fitness. For each char that is the same, that's also +1 in fitness, +1.1 if it is in the same index. Unfortunately I'm having a really though time understanding deaps docs. This is what I have tried among other things so far. Attempted Code from deap import creator from deap import tools