mednet.models.typing

Defines most common types used in code.

Module Attributes

Checkpoint

Definition of a lightning checkpoint.

TaskType

Types of supported tasks.

TargetType

Types of classifiers/segmenters we support.

mednet.models.typing.Checkpoint

Definition of a lightning checkpoint.

alias of MutableMapping[str, Any]

mednet.models.typing.TaskType

Types of supported tasks.

alias of Literal[‘classification’, ‘segmentation’]

mednet.models.typing.TargetType

Types of classifiers/segmenters we support.

We distinguish target types by looking at sample target values of available databases.

  • binary: single (binary) target, where negative labels are set to zero and

    positives to 1.

  • multiclass: multiple (binary) outputs, one-hot encoded where negative/positive are encoded as in the binary case. Each sample is assigned exactly one, and only one, label.

  • multilabel: multiple outputs, where each sample may have more than one label.

alias of Literal[‘binary’, ‘multiclass’, ‘multilabel’]