# Neural Network Diagram

**URL:** <https://forum.knime.com/t/neural-network-diagram/43721>\
**Category:** KNIME Analytics Platform\
**Created:** [June 2, 2022, 11:07am UTC](https://forum.knime.com/t/neural-network-diagram/43721 "2022-06-02T11:07:46Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![aworker](https://forum-cdn.knime.com/user_avatar/forum.knime.com/aworker/32/36421_2.png) [@aworker](https://forum.knime.com/u/aworker)\
**Post date:** [June 2, 2022, 12:29pm UTC](https://forum.knime.com/t/neural-network-diagram/43721/2 "2022-06-02T12:29:15Z")

</div>

Hi @Tseraga

The solution in the following thread shows how to extract the network structure form a KERAS NN using Python:

> [@Keras model summary](https://forum.knime.com/t/keras-model-summary/35844):
>
> Hi, Once I defined a neural net with the KNIME Keras nodes, is there a way to get a sumary of the defined model? If I would implement it in python, I would take the output of the model.summary() function, this is exactly what i’m looking for. Thanks, Agnes

[![](https://forum-cdn.knime.com/uploads/default/original/3X/5/0/5004c619806f7985a44cfd12a059a62a703a560b.png) ](https://forum-cdn.knime.com/uploads/default/original/3X/5/0/5004c619806f7985a44cfd12a059a62a703a560b.png)

[![](https://forum-cdn.knime.com/uploads/default/original/3X/6/6/66c5219f841698c02d2758dc8d5caaa8f52ca17a.png) ](https://forum-cdn.knime.com/uploads/default/original/3X/6/6/66c5219f841698c02d2758dc8d5caaa8f52ca17a.png)

If the format you would like to have looks more like the following:

![image](https://forum-cdn.knime.com/uploads/default/original/3X/d/5/d58bd5f5e8a0694ec1d67f43a9250edaea7a19bd.png)

then I would recommend to have a look at the following blog by Jason Brownlee to adapt the Python code of the previous workflow and generate nice PNG diagram images from your NN structures with just a little bit of extra modification:

> **[How to Visualize a Deep Learning Neural Network Model in Keras -...](https://machinelearningmastery.com/visualize-deep-learning-neural-network-model-keras/)**
>
> The Keras Python deep learning library provides tools to visualize and better understand your neural network models. In this tutorial, you will discover exactly how to summarize and visualize your deep learning models in Keras. After completing this...

Hope it helps.

Best  
Ael

---

_[View the full topic](https://forum.knime.com/t/neural-network-diagram/43721)._
