Algorithm 1 BPNN algorithm workflow |
-
Input:
-
Training set: , ;
-
Learning rate: ;
-
Initial neuron parameters: , , , .
-
Output:
Effective neuron parameters: , , , .
-
1:
The samples and network parameters are initialized according to Formula (13);
-
2:
for all
do
-
3:
The input of the output neuron is calculated according to Formula (14);
-
4:
The output of the current sample is calculated according to Formula (15);
-
5:
The gradient of the neuron in the output layer is calculated according to Formula (16);
-
6:
The gradient of neurons in the hidden layer is calculated according to Formula (17);
-
7:
The Neuron parameters are updated according to Formula (18);
-
8:
if The cumulative error calculated by Formula (19) is in accordance with the expectation then
-
9:
Break;
-
-
10:
return The neuron parameters.
|