for
i = 1, 2, …, Ntrain
do
|
for
k = 1, 2, …, K
do
|
1. Initialize perturbation p0 randomly; set t = 0; |
while
t ≤ Niter
do
|
2. Update pt following equations (3) and (4); |
3. If
or t = Niter, set
, set t = Niter; |
Otherwise, set t = t + 1, go to step 2; |
end while
|
end for
|
end for |
Output
|