powered by
The function pnn.pfi derives the PFI rank of all predictors used in the PNN It essentially is a wrapper around the function pnn.x_pfi.
pnn.pfi
pnn.x_pfi
pnn.pfi(net, ntry = 1000, seed = 1)
A PNN object generated by pnn.fit()
The number of random permutations to try, 1e3 times by default
The seed value for the random permutation
A dataframe with PFI values of all predictors in the PNN
# NOT RUN { data(iris, package = "datasets") Y <- iris[, 5] X <- scale(iris[, 1:4]) pnet <- pnn.fit(x = X, y = Y) # } # NOT RUN { pnn.pfi(pnet) # }
Run the code above in your browser using DataLab