nicetoolbox.evaluation.config_schema

Data models for evaluation configuration files and final evaluation config. Validated with Pydantics BaseModel.

Classes

FinalEvaluationConfig

Create a new model by parsing and validating input data from keyword arguments.

class nicetoolbox.evaluation.config_schema.FinalEvaluationConfig(*, device: str, verbose: bool, batchsize: int, prediction_components: ~typing.Dict[str, ~typing.List[str]], annotation_components: ~typing.Dict[str, ~typing.List[str]], metric_types: ~typing.Dict[str, ~nicetoolbox.configs.schemas.evaluation_config.EvaluationMetricType] = <factory>, component_algorithm_mapping: ~typing.Dict[str, ~typing.List[str]] = <factory>)[source]

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.

self is explicitly positional-only to allow self as a field name.

model_config: ClassVar[ConfigDict] = {}

Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].