pnn.x_pfi: Derive the permutation feature importance of a predictor used in the PNN
Description
The function pnn.x_pfi derives the permutation feature importance (PFI) of a predictor used in the PNN,
where the "importance" is deined by the increase in cross entropy after the predictor is randomly permutated.
Usage
pnn.x_pfi(net, i, ntry = 1000, seed = 1)
Arguments
net
A PNN object generated by pnn.fit()
i
The ith predictor in the PNN
ntry
The number of random permutations to try, 1e3 times by default
seed
The seed value for the random permutation
Value
A vector with the variable name and the PFI value.