Skip to main content
. 2021 Feb 20;21(4):1483. doi: 10.3390/s21041483
Algorithm 1 Update the trainable parameter θ of WPNF via the stochastic gradient descent method of momentum
Require: learning rate η, Momentum parameter α, Initial parameters θ, Initial speed v
 For epoch to set value, do:
  For episode to set value, do:
   Randomly take m samples {x(1),x(2),x(3)…x(m)} from the query set, and their true labels are ck(i)
   Compute gradient of the samples: g←1m∇θ∑iJ(x, ck)
   Compute speed update: v←αa−ηg
   Update parameters: θ← θ+v
  End For
 End For