model_tf module
- class model_tf.Discriminator(*args, **kwargs)[source]
Bases:
ModelDiscriminator class responsible for initializing and processing the discriminator network.
- Parameters:
input_dim (int) – Dimension of the input features.
spec_norm (bool) – Whether to apply spectral normalization to the layers.
bounded (bool) – Whether to apply bounded activation on the final output.
layers_list (list) – List of integers specifying the number of units for each hidden layer.
- Returns:
Output after processing through the discriminator network.
- Return type:
tf.Tensor
- class model_tf.DiscriminatorMNIST(*args, **kwargs)[source]
Bases:
ModelDiscriminator class for the MNIST dataset, responsible for classifying real vs fake images.
- Returns:
Output after processing the input image through the discriminator network.
- Return type:
tf.Tensor
- class model_tf.Generator(*args, **kwargs)[source]
Bases:
ModelGenerator class responsible for initializing and processing the generator network.
- Parameters:
X_dim (int) – Dimension of the output generated by the generator.
Z_dim (int) – Dimension of the input latent space.
spec_norm (bool) – Whether to apply spectral normalization to the layers.
layers_list (list) – List of integers specifying the number of units for each hidden layer.
- Returns:
Generated output after processing the latent input.
- Return type:
tf.Tensor