Calculate neuron activation for an input
1 | def activate(weights, inputs): |
Transfer neuron activation
1 | from math import exp |
Forward propagate input to a network output
1 | def forward_propagate(network, row): |
test forward propagation
1 | network = [[{'weights': [0.13436424411240122, 0.8474337369372327, 0.763774618976614]}], |
output
1 | [0.6629970129852887, 0.7253160725279748] |