varencoder module
This module contains the whole implementation of Felon Finder’s variational autoencoder. This is truly part of the heart of Felon Finder.
- class varencoder.Sampling(*args, **kwargs)[source]
Bases:
Layer
Sampling layer for VAE.
This layer takes the mean and log variance of the latent space distribution as input and samples from the distribution to produce a latent vector.
- class varencoder.VAE(*args, **kwargs)[source]
Bases:
Model
Variational Autoencoder class.
- call(x)[source]
Call method for VAE model.
- Parameters:
x – Input data.
- Returns:
Decoded output.
- Return type:
tensor
- property metrics
Returns the list of metrics.