remove create_func....
This commit is contained in:
@@ -1,15 +1,27 @@
|
||||
from typing import Callable
|
||||
|
||||
from config import ProblemConfig
|
||||
from state import State
|
||||
from .state import State
|
||||
|
||||
|
||||
class Problem:
|
||||
|
||||
def __init__(self, config: ProblemConfig):
|
||||
def __init__(self, problem_config: ProblemConfig = ProblemConfig()):
|
||||
self.config = problem_config
|
||||
|
||||
def evaluate(self, randkey, state: State, act_func: Callable, params):
|
||||
raise NotImplementedError
|
||||
|
||||
def setup(self, state=State()):
|
||||
@property
|
||||
def input_shape(self):
|
||||
raise NotImplementedError
|
||||
|
||||
def evaluate(self, state: State, act_func: Callable, params):
|
||||
@property
|
||||
def output_shape(self):
|
||||
raise NotImplementedError
|
||||
|
||||
def show(self, randkey, state: State, act_func: Callable, params):
|
||||
"""
|
||||
show how a genome perform in this problem
|
||||
"""
|
||||
raise NotImplementedError
|
||||
|
||||
Reference in New Issue
Block a user