| 6 | self.kwargs = kwargs |
| 7 | |
| 8 | class BaseTask: |
| 9 | def __init__(self, logdir, split, type, **kwargs): |
| 10 | self.logdir = logdir |
| 11 | self.split = split |
| 12 | self.type = type |
| 13 | self.kwargs = kwargs |
| 14 | self.subtasks = [] |
| 15 | self.setup() |
| 16 | |
| 17 | def setup(self): |
| 18 | raise NotImplementedError() |
| 19 | |
| 20 | def run(self): |
| 21 | raise NotImplementedError() |
| 22 | |
| 23 | def validate(self): |
| 24 | raise NotImplementedError() |
| 25 | |
| 26 | def report(self, results: List[Result]): |
| 27 | raise NotImplementedError() |
nothing calls this directly
no outgoing calls
no test coverage detected