Skip to main content
. 2020 Jan 21;20(3):586. doi: 10.3390/s20030586
Algorithm 1. The neural network algorithm with convolution module and residual structure
Input: Training samples {xi}. Initialized parameters θc in convolution kernel. Weight matrix W. The jth class center cj of features. Hyper-parameter s, μ in LAMS. Learning rate α for feature center in LC. Weight λ and learning rate lr in network. The number of iteration t0.
Output: The parameters θc.
Step 1: while not converge do
Step 2: tt+1.
Step 3: compute the joint loss by LAMSCt=LAMSt+λLCt.
Step 4: compute the backpropagation error LAMSCtxit for each i by LAMSCtxit=LAMStxit+λLCtxit.
Step 5: update the parameters W by Wt+1=WtlrLAMSCtWt=WtlrLAMStWt.
Step 6: update the parameters cj by cjt+1=cjtαΔcjt.
Step 7: update the parameters θc by θct+1=θctlrimLAMSCtxitxitθct.
Step 8: end while