
Plot deep learning model architecture
Source:R/supervised-deep-learning.R
tl_plot_deep_architecture.RdPlot deep learning model architecture
Arguments
- model
A tidylearn deep learning model object
- ...
Additional arguments passed to the
plot()method keras provides for its models, such asto_fileordpi.show_shapesandshow_layer_namesdefault toTRUE.
Value
NULL, invisibly. Called for its side effect: keras draws
the architecture diagram on the current graphics device, or writes it
to to_file. keras renders it through the Python packages
pydot and graphviz, and errors saying so when they are
not installed.
Examples
if (FALSE) { # \dontrun{
if (requireNamespace("keras3", quietly = TRUE)) {
model <- tl_model(iris, Species ~ ., method = "deep", epochs = 5)
tl_plot_deep_architecture(model)
}
} # }