Files
tensorneat-mend/tensorneat/algorithm/neat/ga/crossover/base.py
wls2002 79d53ea7af All function with state will update the state and return it.
Remove randkey args in functions with state, since it can attach the randkey by states.
2024-05-25 20:45:57 +08:00

11 lines
211 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