Skip to content

Instantly share code, notes, and snippets.

View pgerbes1's full-sized avatar

Patrick Gerbes pgerbes1

  • Atlanta, GA
View GitHub Profile

Keybase proof

I hereby claim:

  • I am pgerbes1 on github.
  • I am pgerbes (https://keybase.io/pgerbes) on keybase.
  • I have a public key whose fingerprint is 0E8E 6E18 7263 2E31 AB5B 5327 4431 7CD2 1C36 5FF4

To claim this, I am signing this object:

@pgerbes1
pgerbes1 / basic_neural_net.py
Created September 15, 2015 20:06
Basic Neural Net For Number Recognition
import random
import math
import numpy as np
### Could also use tanh or any other smooth/differentiable function is this class
def sigmoid(t):
return 1 / (1 + math.exp(-t))
def neuron_output(weights, inputs):
return sigmoid(np.dot(weights, inputs))