Encoder¶
-
RONAALP.utilities.
create_autoencoder
(architecture, input_dim, latent_dim, output_dim=None)[source]¶ Create a flexible autoencoder model with a symmetrical architecture for encoding and decoding.
- Parameters
- architecturelist
A list specifying the number of neurons in each hidden layer for the encoding and decoding parts.
- input_dimint
The dimension of the input data.
- latent_dimint
The dimension of the bottleneck layer (latent space).
- output_dimint, optional
The dimension of the output data. If None, it defaults to the input_dim.
- Returns
- autoencoderkeras.models.Model
The autoencoder model with both encoding and decoding parts.
- encoderkeras.models.Model
The encoder model only.