nat.data_models.evaluate_config#
YAML-backed evaluation configuration models (eval.*) for workflow configs.
Classes#
Policy for evicting old jobs when max_jobs is exceeded. |
|
Configuration for a custom script to run after the workflow and evaluation results are saved. |
|
Configuration for the job management of the evaluation. |
|
Configuration for the output of the evaluation. This is specifiied in the |
|
Configuration for the general evaluation options. This is specifiied in the |
|
Configuration for the evaluation options. This is specifiied in the |
Module Contents#
- class JobEvictionPolicy#
Bases:
enum.StrEnumPolicy for evicting old jobs when max_jobs is exceeded.
Initialize self. See help(type(self)) for accurate signature.
- TIME_CREATED = 'time_created'#
- TIME_MODIFIED = 'time_modified'#
- class EvalCustomScriptConfig(/, **data: Any)#
Bases:
pydantic.BaseModelConfiguration for a custom script to run after the workflow and evaluation results are saved. This is specifiied in the
eval.general.output.custom_scriptssection of the evaluation configuration yaml file.Create a new model by parsing and validating input data from keyword arguments.
Raises [
ValidationError][pydantic_core.ValidationError] if the input data cannot be validated to form a valid model.selfis explicitly positional-only to allowselfas a field name.- script: pathlib.Path = None#
- class JobManagementConfig(/, **data: Any)#
Bases:
pydantic.BaseModelConfiguration for the job management of the evaluation. This is specifiied in the
eval.general.output.job_managementsection of the evaluation configuration yaml file.Create a new model by parsing and validating input data from keyword arguments.
Raises [
ValidationError][pydantic_core.ValidationError] if the input data cannot be validated to form a valid model.selfis explicitly positional-only to allowselfas a field name.- eviction_policy: JobEvictionPolicy = None#
- class EvalOutputConfig(/, **data: Any)#
Bases:
pydantic.BaseModelConfiguration for the output of the evaluation. This is specifiied in the
eval.general.outputsection of the evaluation configuration yaml file.Create a new model by parsing and validating input data from keyword arguments.
Raises [
ValidationError][pydantic_core.ValidationError] if the input data cannot be validated to form a valid model.selfis explicitly positional-only to allowselfas a field name.- dir: pathlib.Path = None#
- custom_scripts: dict[str, EvalCustomScriptConfig] = None#
- s3: nat.data_models.dataset_handler.EvalS3Config | None = None#
- job_management: JobManagementConfig = None#
- workflow_output_step_filter: list[nat.data_models.intermediate_step.IntermediateStepType] | None = None#
- class EvalGeneralConfig(/, **data: Any)#
Bases:
pydantic.BaseModelConfiguration for the general evaluation options. This is specifiied in the
eval.generalsection of the evaluation configuration yaml file.Create a new model by parsing and validating input data from keyword arguments.
Raises [
ValidationError][pydantic_core.ValidationError] if the input data cannot be validated to form a valid model.selfis explicitly positional-only to allowselfas a field name.- output_dir: pathlib.Path = None#
- output: EvalOutputConfig | None = None#
- dataset: nat.data_models.dataset_handler.EvalDatasetBaseConfig | None = None#
- profiler: nat.data_models.profiler.ProfilerConfig | None = None#
- classmethod override_output_dir(values)#
- classmethod rebuild_annotations()#
- class EvalConfig(/, **data: Any)#
Bases:
pydantic.BaseModelConfiguration for the evaluation options. This is specifiied in the
evalsection of the evaluation configuration yaml file.Create a new model by parsing and validating input data from keyword arguments.
Raises [
ValidationError][pydantic_core.ValidationError] if the input data cannot be validated to form a valid model.selfis explicitly positional-only to allowselfas a field name.- general: EvalGeneralConfig = None#
- evaluators: dict[str, nat.data_models.evaluator.EvaluatorBaseConfig] = None#
- classmethod rebuild_annotations()#