Neural Network

An illustrative example of a neural network. Mostly illustrates that it is a graph and can highlight a single neuron and its links which is handy while talking about fan-out.

Download ann-example.py

Usage

\input{|"python ann-example.py 0 "}

Neural Network

\input{|"python ann-example.py 1 "}

Neural Network With Neuron Highlighted

Some parameters can be found at the top of the file which tweak the probability of connectivity and the size of the world. Uses a fixed seed for deterministic output. Search for the line which outputs the "tikzpicture" to change scaling options.