Kybernetes blog

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

Neural Networks Drawing

28.4.2015

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:

http://neuron.tuke.sk/jaksa/neural/annviz.0.1.tar.bz2

It needs http://graphviz.org, http://imagemagick.org (or http://feh.finalrewind.org) and https://www.perl.org 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 https://inkscape.org.

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

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

kontakt: blog@kybernetes.sk
web: blog.kybernetes.sk

Copyright © 2016 Kybernetes s.r.o.