This function defines a generative neural network model for a certain architecture and adds noise to the input layer.
nn_model(in_dim, noise_dim, hidden_dim = 100, out_dim, num_layer = 3)A generative neural network model with intermediate noise injection.
Integer. Input dimension.
Integer. Dimension of the noise to inject.
Integer. Number of neurons in the hidden layers (default: 100).
Integer. Output dimension.
Integer. Number of layers in the model (default: 3).