| 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 |
| For epoch to set value, do: |
| For episode to set value, do: |
| Randomly take samples from the query set, and their true labels are |
| Compute gradient of the samples: |
| Compute speed update: |
| Update parameters: |
| End For |
| End For |