Files
tensorneat-mend/tensorneat/algorithm/neat/ga/mutation/base.py
wls2002 cf69b916af use black format all files;
remove "return state" for functions which will be executed in vmap;
recover randkey as args in mutation methods
2024-05-26 15:46:04 +08:00

10 lines
205 B
Python

from utils import State
class BaseMutation:
def setup(self, state=State()):
return state
def __call__(self, state, genome, nodes, conns, new_node_key):
raise NotImplementedError