Instantly share code, notes, and snippets.

# theScinder

• Sort options
Created Jan 16, 2018
char-Res-Schmitt
View schmittRes.py
 # Reservoir computing character prediction text generator # Perturb a dynamic reservoir with character inputs, predict next character with linear classifier # ________ # | | # V | random connections with some sparsity #input--->o--->o--->o | # | | | | # V V V | # o--->o--->o-- # | | |
Created May 6, 2017
View roulette.py
 from matplotlib import pyplot as plt import matplotlib as mpl import numpy as np def roulette(maxBet,startBet,startCash,betMulti,goalCash,myIt): # My buddy assures me this is a sure thing . . . # maxBet - maximum allowed bet # startCash- your principal # betMulti - mulyiply your bet X this amount if unsuccessful # goalCash - how much you want to leave the table with
Created Mar 2, 2017
Teaching a Machine to XOR (visualize learning process)
View trainNNXOR.py
 # Training a neural XOR circuit # In Marvin Minsky Seymour Papert's in/famous critique of perceptrons () published in 1969, they argued that neural networks # had extremely limited utility, proving that the perceptrons of the time could not even learn # the exclusive OR function. This played some role # Now we can easily teach a neural network an XOR function by incorporating more layers. # Truth table: # Input | Output # 00 | 0 # 01 | 1 # 10 | 1
Last active Jan 22, 2018 — forked from craffel/draw_neural_net.py
Draw a neural network diagram with matplotlib!
View draw_neural_net.py
 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
You can’t perform that action at this time.