cellmil.interfaces.EvaluationExternalValidatorConfig

Classes

AggregationMethod(value)

Enumeration of available aggregation methods for external validation.

EvaluationExternalValidatorConfig(*, metrics)

FinalModel(value)

An enumeration.

class cellmil.interfaces.EvaluationExternalValidatorConfig.AggregationMethod(value)[source]

Bases: str, Enum

Enumeration of available aggregation methods for external validation.

mean = 'mean'
median = 'median'
majority = 'majority'
everything = 'everything'
classmethod values()[source]
_generate_next_value_(start, count, last_values)

Generate the next value when not given.

name: the name of the member start: the initial start value or None count: the number of existing members last_value: the last value assigned or None

class cellmil.interfaces.EvaluationExternalValidatorConfig.FinalModel(value)[source]

Bases: str, Enum

An enumeration.

final = 'final'
ensemble = 'ensemble'
classmethod values()[source]
_generate_next_value_(start, count, last_values)

Generate the next value when not given.

name: the name of the member start: the initial start value or None count: the number of existing members last_value: the last value assigned or None

class cellmil.interfaces.EvaluationExternalValidatorConfig.EvaluationExternalValidatorConfig(*, metrics: list[cellmil.interfaces.EvaluationReporterConfig.Metrics], output_dir: Path = PosixPath('evaluation_reports'), models_dir: Path, final_model: FinalModel = FinalModel.final, aggregation_method: AggregationMethod = AggregationMethod.mean, dataset_dir: Path, root_dir: Path, dp_metadata_file: Path)[source]

Bases: BaseModel

metrics: list[cellmil.interfaces.EvaluationReporterConfig.Metrics]
output_dir: Path
models_dir: Path
final_model: FinalModel
aggregation_method: AggregationMethod
dataset_dir: Path
root_dir: Path
dp_metadata_file: Path
class Config[source]

Bases: object

arbitrary_types_allowed = True
model_config: ClassVar[ConfigDict] = {'arbitrary_types_allowed': True}

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