mirror of
https://github.com/NicolasBohn/NexQuant.git
synced 2026-07-27 23:47:46 +00:00
6b626eb56d
* Commit init framework * Co-authored-by: Yuante Li (FESCO Adecco Human Resources) <v-yuanteli@microsoft.com> Co-authored-by: XianBW <XianBW@users.noreply.github.com> * add an import * refine the whole framework * benchmark related framework * fix black and isort errors * move requirements to folder * fix black again --------- Co-authored-by: Young <afe.young@gmail.com> Co-authored-by: xuyang1 <xuyang1@microsoft.com>
29 lines
836 B
Python
29 lines
836 B
Python
from abc import ABC, abstractmethod
|
|
from typing import List, Sequence
|
|
|
|
from rdagent.core.task import BaseTask, TaskImplementation
|
|
|
|
|
|
class TaskGenerator(ABC):
|
|
@abstractmethod
|
|
def generate(self, task_l: Sequence[BaseTask]) -> Sequence[TaskImplementation]:
|
|
"""
|
|
Task Generator should take in a sequence of tasks.
|
|
|
|
Because the schedule of different tasks is crucial for the final performance
|
|
due to it affects the learning process.
|
|
|
|
"""
|
|
raise NotImplementedError("generate method is not implemented.")
|
|
|
|
def collect_feedback(self, feedback_obj_l: List[object]):
|
|
"""
|
|
When online evaluation.
|
|
The preivous feedbacks will be collected to support advanced factor generator
|
|
|
|
Parameters
|
|
----------
|
|
feedback_obj_l : List[object]
|
|
|
|
"""
|