Files
tensorneat-mend/tensorneat/algorithm/neat/species/base.py
2024-03-26 21:58:27 +08:00

14 lines
346 B
Python

from utils import State
class BaseSpecies:
def setup(self, randkey):
raise NotImplementedError
def ask(self, state: State):
raise NotImplementedError
def update_species(self, state, fitness, generation):
raise NotImplementedError
def speciate(self, state, generation):
raise NotImplementedError