Skip to main content
. 2023 Mar 10;25(3):487. doi: 10.3390/e25030487
Algorithm 1: Image Adversarial Example Generation Method Based on Adaptive Parameter Adjustable Differential Evolution
  • (1)

     Input: Original image I and its correct label t

  • (2)

     Output: Adversarial example I’, or original image I.

  • (3)

     x=x1,x2,…,xn←I

  • (4)

     p(x)=p1,p2,…,pn

  • (5)

     flag, image ← APADE(x, t, p(x))

  • (6)

     if flag == Success

  • (7)

       return I′

  • (8)

     else

  • (9)

       return I

  • (10)

    end if