remove "return state" for functions which will be executed in vmap; recover randkey as args in mutation methods
10 lines
205 B
Python
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
|