We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 3d84c1b + 15703d3 commit bc701abCopy full SHA for bc701ab
neural-networks-1.md
@@ -51,7 +51,7 @@ An example code for forward-propagating a single neuron might look as follows:
51
```python
52
class Neuron(object):
53
# ...
54
- def forward(inputs):
+ def forward(self, inputs):
55
""" assume inputs and weights are 1-D numpy arrays and bias is a number """
56
cell_body_sum = np.sum(inputs * self.weights) + self.bias
57
firing_rate = 1.0 / (1.0 + math.exp(-cell_body_sum)) # sigmoid activation function
0 commit comments