get_n_neurons_in_latent_layer_from_model: Get the number of neurons in the layent layer from a 'model'

View source: R/get_n_neurons_in_latent_layer_from_model.R

get_n_neurons_in_latent_layer_from_modelR Documentation

Get the number of neurons in the layent layer from a model

Description

Get the number of neurons in the layent layer from a model

Usage

get_n_neurons_in_latent_layer_from_model(model)

Arguments

model

the GCAE architecture, as checked by check_model. Use read_model_file to read a GCAE architecture from file. Use save_model to save the model to a JSON file. Use plot_model to plot the model. Use save_model_plot to save a plot of the model to file.

Value

the number of neurons in the latent layer

Author(s)

Richèl J.C. Bilderbeek

See Also

use get_n_neurons_in_latent_layer to get the number of neurons in the latent layer for different input arguments

Examples

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)
get_n_neurons_in_latent_layer_from_model(model)

richelbilderbeek/gcaer documentation built on March 25, 2024, 3:08 p.m.