Exemple #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)
 def __init__(self, key):
     assert isinstance(
         key, int), "StateGene key must be an int, not {!r}".format(key)
     BaseGene.__init__(self, key)
 def __init__(self, key):
     assert isinstance(
         key,
         tuple), "TransitionGene key must be an tuple, not {!r}".format(key)
     BaseGene.__init__(self, key)
Exemple #5
0
 def mutate_safe(self, *args, **kwargs):
     BaseGene.mutate(self, *args, **kwargs)