Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Keras in R: looking for function equivalent to plot_model in Python

In Python, Keras has a convenient function plot_model which visualises the architecture of your model -- an example included below. I'm looking for an equivalent function in R that works with the keras library (not kerasR). If you have any suggestions on how to generate such image in R, I'd love to hear from you.

Many thanks in advance!

enter image description here

like image 863
IVR Avatar asked Feb 06 '18 02:02

IVR


People also ask

Can keras be used in R?

Keras and TensorFlow are the state of the art in deep learning tools and with the keras package you can now access both with a fluent R interface.

What is model summary() in Keras?

Summarize ModelKeras provides a way to summarize a model. The summary is textual and includes information about: The layers and their order in the model. The output shape of each layer.

How do I use Visualkeras?

Let's start by installing the Visualkeras library in the command prompt. Next, we will import all the libraries which are required to build a sequential model. Now we will build a simple model with some convolutional and pooling layers. Let's look for the summary of the defined model.

How do I visualize a neural network in keras?

ANN Visualizer is a python library that enables us to visualize an Artificial Neural Network using just a single line of code. It is used to work with Keras and makes use of python's graphviz library to create a neat and presentable graph of the neural network you're building.


1 Answers

Here is the latest on the issue: https://github.com/rstudio/keras/issues/325.

Andrie implemented a plot_model() function similar to Python's keras::plot_model(). Link to the documentation: https://andrie.github.io/deepviz/index.html.

like image 145
cooldood3490 Avatar answered Oct 13 '22 19:10

cooldood3490