Returns: DatasetEvaluator or None It is not implemented by default.
(cls, cfg, dataset_name)
| 485 | |
| 486 | @classmethod |
| 487 | def build_evaluator(cls, cfg, dataset_name): |
| 488 | """ |
| 489 | Returns: |
| 490 | DatasetEvaluator or None |
| 491 | |
| 492 | It is not implemented by default. |
| 493 | """ |
| 494 | raise NotImplementedError( |
| 495 | """ |
| 496 | If you want DefaultTrainer to automatically run evaluation, |
| 497 | please implement `build_evaluator()` in subclasses (see train_net.py for example). |
| 498 | Alternatively, you can call evaluation functions yourself (see Colab balloon tutorial for example). |
| 499 | """ |
| 500 | ) |
| 501 | |
| 502 | @classmethod |
| 503 | def test(cls, cfg, model, evaluators=None): |