mednet.models.classify.typing

Definition of types related to models used in classification tasks.

Module Attributes

BinaryPrediction

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

MultiClassPrediction

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

BinaryPredictionSplit

A series of predictions for different database splits.

MultiClassPredictionSplit

A series of predictions for different database splits.

SaliencyMapAlgorithm

Supported saliency map algorithms.

mednet.models.classify.typing.BinaryPrediction

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

alias of tuple[str, int, float]

mednet.models.classify.typing.MultiClassPrediction

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

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

mednet.models.classify.typing.BinaryPredictionSplit

A series of predictions for different database splits.

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

mednet.models.classify.typing.MultiClassPredictionSplit

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’]