mirror of
https://github.com/c-sooyoung/bo-ptycho.git
synced 2026-09-17 21:29:07 +09:00
also refactored BO to class/methods
This commit is contained in:
@@ -0,0 +1,21 @@
|
||||
from abc import ABC, abstractmethod
|
||||
|
||||
|
||||
class BOEngine(ABC):
|
||||
name = None
|
||||
|
||||
def __init__(self, config):
|
||||
self.config = config
|
||||
self.state = None
|
||||
|
||||
@abstractmethod
|
||||
def initialize(self):
|
||||
pass
|
||||
|
||||
@abstractmethod
|
||||
def ask(self):
|
||||
pass
|
||||
|
||||
@abstractmethod
|
||||
def tell(self, job_config, y_value):
|
||||
pass
|
||||
Reference in New Issue
Block a user