Skip to main content
. 2023 Sep 11;23(18):7800. doi: 10.3390/s23187800
Algorithm 1
  1. eorig =L(y,f^ (X))  

  2. For each feature j ∈ {1,...,p} do:
    • -
      Randomly shuffle column j of dataset X to generate permuted feature matrix Xperm
    • -
      Estimate error eperm=L(Y, f^ (Xperm)) based on the predictions of permuted data
    • -
      Calculate feature importance attribution as FIj=eperm−eorig
  3. Sort features by descending FI