Converts a Keras model to dot format and save to a file.
plot_keras_model(
model,
to_file = "model.png",
show_shapes = FALSE,
show_layer_names = TRUE,
rankdir = "TB",
expand_nested = FALSE,
dpi = 96
)
A Keras model instance
File name of the plot image.
whether to display shape information.
whether to display layer names.
`rankdir` argument passed to PyDot, a string specifying the format of the plot: 'TB' creates a vertical plot; 'LR' creates a horizontal plot.
Whether to expand nested models into clusters.
Dots per inch.
saves a png image on the system and builds a plot in R