View source: R/set_n_neurons_in_latent_layer.R
set_n_neurons_in_latent_layer | R Documentation |
Set the number of neurons in the latent layer
set_n_neurons_in_latent_layer(model, n_neurons)
model |
the |
n_neurons |
the number of neurons, as checked by check_n_neurons |
the model with the desired number of neurons in the latent layer
Richèl J.C. Bilderbeek
if (is_gcae_repo_cloned()) {
# A real GCAE file
model_filename <- get_gcae_model_filename("M1")
} else {
# An example file
model_filename <- get_gcaer_filename("M0.json")
}
model <- read_model_file(model_filename)
new_model <- set_n_neurons_in_latent_layer(
model = model,
n_neurons = 1
)
get_n_neurons_in_latent_layer(new_model)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.