restart this repository

This commit is contained in:
Mia Steinkirch 2019-10-20 16:23:01 -07:00
parent 1d5577b7e8
commit 532fbd7342
21 changed files with 2 additions and 2 deletions

View file

@ -1,7 +0,0 @@
class Neuron(object):
# ...
def forward(inputs):
""" assume inputs and weights are 1-D numpy arrays and bias is a number """
cell_body_sum = np.sum(inputs * self.weights) + self.bias
firing_rate = 1.0 / (1.0 + math.exp(-cell_body_sum)) # sigmoid activation function
return firing_rate