punched in a snippet of the example code to create my own GA and it returned this:
AttributeError: module 'genetics' has no attribute 'DNAComponent'
SYNTAX:
import string
import random
import genetics
import numpy
class genetic(genetics.DNAComponent):
def ed(e):
solution = e == 'win'
punched in a snippet of the example code to create my own GA and it returned this:
AttributeError: module 'genetics' has no attribute 'DNAComponent'
SYNTAX:
import string
import random
import genetics
import numpy
class genetic(genetics.DNAComponent):
def ed(e):
solution = e == 'win'