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.
1 parent eadb491 commit 15703d3Copy full SHA for 15703d3
neural-networks-1.md
@@ -38,7 +38,7 @@ An example code for forward-propagating a single neuron might look as follows:
38
```python
39
class Neuron:
40
# ...
41
- def forward(inputs):
+ def forward(self, inputs):
42
""" assume inputs and weights are 1-D numpy arrays and bias is a number """
43
cell_body_sum = np.sum(inputs * self.weights) + self.bias
44
firing_rate = 1.0 / (1.0 + math.exp(-cell_body_sum)) # sigmoid activation function
0 commit comments