nemo_evaluator.core.registry
#
Module Contents#
Classes#
Singleton registry for storing framework entry classes. |
Functions#
Decorator to register an entry class for evaluation. |
API#
- class nemo_evaluator.core.registry.EvalFramworkRegistry[source]#
Singleton registry for storing framework entry classes.
- get_entries() list[Type[nemo_evaluator.api.base.EvalFrameworkBase]] [source]#
- register(
- framework_entry_class: Type[nemo_evaluator.api.base.EvalFrameworkBase],
- nemo_evaluator.core.registry.get_global_registry() nemo_evaluator.core.registry.EvalFramworkRegistry [source]#
- nemo_evaluator.core.registry.register_framework(
- user_framework: Type[nemo_evaluator.api.base.EvalFrameworkBase],
Decorator to register an entry class for evaluation.
Usage: @register_framework class ExampleEvalFramwork(EvalFrameworkBase): @staticmethod def parse_output(output_dir: str) -> EvaluationResult: # COMPLETE: add the parsing logic pass
@staticmethod def framework_def() -> Path: # COMPLETE: add the path to your `framework.yml` pass