mednet.models.classify.typing

Definition of types related to models used in classification tasks.

Module Attributes

Prediction

The sample name, the target, and the predicted value.

PredictionSplit

A series of predictions for different database splits.

SaliencyMapAlgorithm

Supported saliency map algorithms.

mednet.models.classify.typing.Prediction

The sample name, the target, and the predicted value.

alias of tuple[str, Sequence[int], Sequence[float]]

mednet.models.classify.typing.PredictionSplit

A series of predictions for different database splits.

alias of Mapping[str, Sequence[tuple[str, Sequence[int], Sequence[float]]]]

mednet.models.classify.typing.SaliencyMapAlgorithm

Supported saliency map algorithms.

alias of Literal[‘ablationcam’, ‘eigencam’, ‘eigengradcam’, ‘fullgrad’, ‘gradcam’, ‘gradcamelementwise’, ‘gradcam++’, ‘gradcamplusplus’, ‘hirescam’, ‘layercam’, ‘randomcam’, ‘scorecam’, ‘xgradcam’]