new architecture
This commit is contained in:
14
algorithm/neat/species/base.py
Normal file
14
algorithm/neat/species/base.py
Normal file
@@ -0,0 +1,14 @@
|
||||
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
|
||||
Reference in New Issue
Block a user