Kybernetes blog

The place with world's knowledge about cybernetics, artificial inteligence and automation.

Neural Networks Drawing


By weekend I wrote short script for drawing neural networks.  I had such a thing in 90-s using angela software for graph drawing, but it’s not working anymore.  So, I did look for something to quickly draw NN int .pdf.  As I cannot find anything, I wrote this graphviz based script.  Here is sample output:

This is output of the command:

annviz -ll -nl 4 6 3 2

it means topology is 4-6-3-2 and add the layer labels and node labels.  You can download the script from:

It needs, (or and to have installed. When run, it wrote location of the .dot file and .png file to the console, plus the commands it calls.  So, you can manually edit the .dot file and rerun graphviz.  It’s also possible to produce the .pdf file, or .svg file and edit it in

Ing. Rudolf Jakša PhD.
Kybernetes s.r.o.

Ján Liguš, Editor
Ján Sarnovský, Editor
Rudolf Jakša, Editor


Copyright © 2016 Kybernetes s.r.o.