This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import matplotlib.pyplot as plt | |
def draw_neural_net(ax, left, right, bottom, top, layer_sizes,Theta0,Theta1): | |
''' | |
Public Gist from craffel | |
https://gist.github.com/craffel/2d727968c3aaebd10359 | |
Draw a neural network cartoon using matplotilb. | |
I (theScinder) modified the function to accept neural network weights and adjust connection line widths accordingly, in order to create an animation of NN learning |