use black format all files;
remove "return state" for functions which will be executed in vmap; recover randkey as args in mutation methods
This commit is contained in:
@@ -6,9 +6,9 @@ from utils import State
|
||||
class BaseProblem:
|
||||
jitable = None
|
||||
|
||||
def setup(self, randkey, state: State = State()):
|
||||
def setup(self, state: State = State()):
|
||||
"""initialize the state of the problem"""
|
||||
pass
|
||||
return state
|
||||
|
||||
def evaluate(self, randkey, state: State, act_func: Callable, params):
|
||||
"""evaluate one individual"""
|
||||
|
||||
Reference in New Issue
Block a user