mirror of
https://github.com/NicolasBohn/NexQuant.git
synced 2026-07-28 16:07:46 +00:00
276b462f40
* fix_ruff_error1 * fix_ruff_error * fix ruff error * fix ruff error * pass model.py * rename exception class * rename exception class * rename func name generate_feedback * remove prepare args * optimize code * optimize code * fix code error
27 lines
507 B
Python
27 lines
507 B
Python
from abc import ABC, abstractmethod
|
|
|
|
from rdagent.core.experiment import Task, Workspace
|
|
from rdagent.core.scenario import Scenario
|
|
|
|
|
|
class Feedback:
|
|
pass
|
|
|
|
|
|
class Evaluator(ABC):
|
|
def __init__(
|
|
self,
|
|
scen: Scenario,
|
|
) -> None:
|
|
self.scen = scen
|
|
|
|
@abstractmethod
|
|
def evaluate(
|
|
self,
|
|
target_task: Task,
|
|
implementation: Workspace,
|
|
gt_implementation: Workspace,
|
|
**kwargs: object,
|
|
) -> None:
|
|
raise NotImplementedError
|