remove "return state" for functions which will be executed in vmap; recover randkey as args in mutation methods
10 lines
210 B
Python
10 lines
210 B
Python
from utils import State
|
|
|
|
|
|
class BaseCrossover:
|
|
def setup(self, state=State()):
|
|
return state
|
|
|
|
def __call__(self, state, genome, nodes1, nodes2, conns1, conns2):
|
|
raise NotImplementedError
|