plot_model <- function(object, to_file = "model.png") {
stopifnot(inherits(object, "DLmodel"))
model <- object$get_model()
keras:::keras$utils$vis_utils$plot_model(model, to_file = to_file, show_shapes = TRUE)
}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.