Skip to content

Instantly share code, notes, and snippets.

View turbosnail9's full-sized avatar
🍊
Focusing

Ari Ramdial turbosnail9

🍊
Focusing
View GitHub Profile

Keybase proof

I hereby claim:

  • I am turbosnail9 on github.
  • I am ariramdial (https://keybase.io/ariramdial) on keybase.
  • I have a public key ASBW7O-V47T1iosIR_v2-GPWNvHTC8NTkez8T33oAuanEAo

To claim this, I am signing this object:

@turbosnail9
turbosnail9 / NeuralNetworkFlask.py
Created May 5, 2014 05:05
Add this to the main.py of the sample Google App Engine project
@app.route('/')
def hello():
"""Return a friendly HTTP greeting."""
# XOR Training set
lvInput = np.array([[0, 0], [1, 1], [0, 1], [1, 0]])
lvTarget = np.array([[0.00], [0.00], [1.00], [1.00]])
lFuncs = [None, nn.gaussian, nn.tanh, nn.linear]
bpn = nn.BackPropagationNetwork((2,2,2,1), lFuncs)