Exemplo n.º 1
0
 def __init__(self, key):
     assert isinstance(
         key,
         int), "DefaultNodeGene key must be an int, not {!r}".format(key)
     BaseGene.__init__(self, key)
     self.weights = []
 def __init__(self, key):
     assert isinstance(
         key, tuple
     ), "DefaultConnectionGene key must be a tuple, not {!r}".format(key)
     BaseGene.__init__(self, key)
Exemplo n.º 3
0
 def __init__(self, key):
     assert isinstance(
         key, int), "StateGene key must be an int, not {!r}".format(key)
     BaseGene.__init__(self, key)
Exemplo n.º 4
0
 def __init__(self, key):
     assert isinstance(
         key,
         tuple), "TransitionGene key must be an tuple, not {!r}".format(key)
     BaseGene.__init__(self, key)
Exemplo n.º 5
0
 def mutate_safe(self, *args, **kwargs):
     BaseGene.mutate(self, *args, **kwargs)