Files
tensorneat-mend/algorithm/base.py
2023-07-21 15:03:12 +08:00

18 lines
344 B
Python

from typing import Callable
from .state import State
EMPTY = lambda *args: args
class Algorithm:
def __init__(self):
self.tell: Callable = EMPTY
self.ask: Callable = EMPTY
self.forward: Callable = EMPTY
self.forward_transform: Callable = EMPTY
def setup(self, randkey, state=State()):
pass