mirror of
https://github.com/autistic-symposium/tensorflow-for-deep-learning-py.git
synced 2025-05-13 04:02:15 -04:00
restart this repository
This commit is contained in:
parent
1d5577b7e8
commit
532fbd7342
21 changed files with 2 additions and 2 deletions
|
@ -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
|
Loading…
Add table
Add a link
Reference in a new issue