The function grnn.pfi derives the PFI rank of all predictors used in the GRNN It essentially is a wrapper around the function grnn.x_pfi.
grnn.pfi
grnn.x_pfi
grnn.pfi(net, class = FALSE, ntry = 1000, seed = 1)
The GRNN object generated by grnn.fit()
TRUE or FALSE, whether it is for the classification or not
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 GRNN
# NOT RUN { data(iris, package = "datasets") Y <- ifelse(iris[, 5] == "setosa", 1, 0) X <- scale(iris[, 1:3]) gnet <- grnn.fit(x = X, y = Y) # } # NOT RUN { grnn.pfi(net = gnet, class = TRUE) # }
Run the code above in your browser using DataLab