Skip to main content
. 2023 Aug 28;23(17):7486. doi: 10.3390/s23177486
Algorithm 1 IterNorm Batch Whitening Algorithm [30].

     Input: Batch input XRd×m

     Hyperparameters: constant ϵ and number of iterations K

     Output: Whitened activations XW

  •  1:

    Calculate batch mean μ using (10)

  •  2:

    Calculate centered activations XC using (9)

  •  3:

    Calculate the covariance matrix Σ as 1mXCXCT+ϵId

  •  4:

    Calculate the trace-normalized covariance matrix ΣN=Σ/tr(Σ)

  •  5:

    P0=Id

  •  6:

    for k=1 to K do

  •  7:

        Pk=12(3Pk1Pk13ΣN)

  •  8:

    end for

  •  9:

    Calculate the whitening matrix: W=PK/tr(Σ)

  • 10:

    Calculate whitened output: XW=WXC