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:
I hereby claim:
To claim this, I am signing this object:
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)) |