clinicadl.metrics.config.DiceMetricConfig

clinicadl.metrics.config.DiceMetricConfig[source]

Config class for monai.metrics.DiceMetric.

get_not_nans is not supported currently.

pred_key corresponds to the key of the model output to evaluate in the DataPoint; label_key is the key of the potential label to which the model output must be compared.

Potential postprocessing to apply to the model output before computing the metric can be specified via postprocessing. Accepted transforms are functions that take as input a DataPoint and return a DataPoint, or configuration classes.

parameter include_background: bool = True
parameter reduction: Reduction = mean
parameter ignore_empty: bool = True
parameter num_classes: Optional[PositiveInt] = None
parameter return_with_label: bool = False
parameter pred_key: str = 'output'
parameter label_key: Optional[str] = 'label'
parameter postprocessing: Union[list[TransformOrConfig], PostprocessingHandler] = []
parameter get_not_nans: bool = False