mednet.data.typing¶
Defines most common types used in code.
Module Attributes
Definition of a sample. |
|
A callable that transforms tensors into (other) tensors. |
|
A sequence of transforms. |
|
The definition of a database split. |
|
The definition of a complex database split composed of several other splits. |
|
Our own augmentation definition of a pytorch DataLoader. |
Classes
|
Our own definition of a pytorch Dataset. |
A loader object can load samples from storage. |
- mednet.data.typing.Sample¶
Definition of a sample.
- First parameter
The actual data that is input to the model
- Second parameter
A dictionary containing a named set of meta-data. One the most common is the
targetentry.
- class mednet.data.typing.RawDataLoader[source]¶
Bases:
objectA loader object can load samples from storage.
- mednet.data.typing.Transform¶
A callable that transforms tensors into (other) tensors.
Typically used in data-processing pipelines inside pytorch.
- mednet.data.typing.TransformSequence¶
A sequence of transforms.
- mednet.data.typing.DatabaseSplit¶
The definition of a database split.
A database split maps dataset (subset) names to sequences of objects that, through a
RawDataLoader, eventually becomes aSamplein the processing pipeline.
- mednet.data.typing.ConcatDatabaseSplit¶
The definition of a complex database split composed of several other splits.
A database split maps dataset (subset) names to sequences of objects that, through a
RawDataLoader, eventually becomes aSamplein the processing pipeline. Objects of this subtype allow the construction of complex splits composed of cannibalized parts of other splits. Each split may be assigned a differentRawDataLoader.alias of
Mapping[str,Sequence[tuple[Sequence[Any],RawDataLoader]]]