Algorithm 2.
1. Train DNN for θ* by minimizing the loss function in equation (1); |
for i = 1, 2, …, Nadapt do |
2. Run Algorithm 1 for ; |
3. Find a set of perturbed samples that were found vulnerable; |
4. If P = ∅, set i = Nadapt; |
Otherwise, Set S = S ∪ P, update θ* over enlarged S by minimizing the loss function in equation (1); |
end for |
Output θ* |