aixd.mlmodel
This package contains the machine-learning model implementation.
Data Loading
Data module for the ML model. |
Architecture
Models
Class representing a Conditional Autoencoder model. |
|
Class representing a Conditional Variational Autoencoder model. |
|
Wrapper class for taking a Cond(V)AEModel and fine-tuning the decoder using the encoder as surrogate model. |
|
A PyTorch Lightning callback class that extends the BaseFinetuning class and freezes the encoder of the CondAEModel before training. |
Blocks
Module implementing a fully-connected residual block. |
|
Module implementing a convolutional residual block. |
|
Module implementing a 1D convolutional residual block. |
|
Module implementing a 2D convolutional residual block. |
|
Module implementing a 3D convolutional residual block. |
|
Module implementing a self-attention layer. |
|
Module implementing a 1D self-attention layer. |
|
Module implementing a 2D self-attention layer. |
|
Module implementing a 3D self-attention layer. |
|
Module wrapping around an activation function. |
Decoders/Encoders
Heads
Fully-Connected Feed-Forward Network for encoding an unstrucured, 1D feature. |
|
Fully-Connected Feed-Forward Network for decoding an unstrucured, 1D feature. |
|
Convolutional Network for encoding spatially strucured data in 1, 2 or 3 dimensions. |
|
Convolutional Network for decoding spatially strucured data in 1, 2 or 3 dimensions. |
|
Convolutional Network for encoding spatially strucured (temporal) data in 1 dimension. |
|
Convolutional Network for decoding spatially strucured (temporal) data in 1 dimension. |
|
Convolutional Network for encoding spatially strucured (image-like) data in 2 dimensions. |
|
Convolutional Network for decoding spatially strucured (image-like) data in 2 dimensions. |
|
Convolutional Network for encoding spatially strucured (MRI- or video-like) data in 3 dimensions. |
|
Convolutional Network for decoding spatially strucured (MRI- or video-like) data in 3 dimensions. |
Losses
Generation
Initialize a Generator instance. |
|
The Generator class needs to sampled from the outputML, in order to provide these values as entry to the decoder. |