Skip to content

Instantly share code, notes, and snippets.

@dnilsson1
dnilsson1 / README.md
Last active March 13, 2024 20:09 — forked from craffel/draw_neural_net.py
Draw graphical representations of neural networks with matplotlib!

Draw graphical representations of a neural network using matplotilb.

This fork adds bias, coloring and text labels to the original work

Example usage:

    #optional text lables as a list (this one conntains subscript unicharacters)
    node_text = ['','','','','h1\u2081','h1\u2082','h1\u2083','h1\u2084','h1\u2085', 'h1\u2086','h1\u2099']
 #Custom coloring to input an output layer