clinicadl.metrics.config.GeneralizedDiceScoreConfig

clinicadl.metrics.config.GeneralizedDiceScoreConfig[source]

Config class for monai.metrics.GeneralizedDiceScore.

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 weight_type: WeightType = square
parameter pred_key: str = 'output'
parameter label_key: Optional[str] = 'label'
parameter postprocessing: Union[list[TransformOrConfig], PostprocessingHandler] = []