varImp.SDForest | R Documentation |
This function extracts the variable importance of an SDForest. The variable importance is calculated as the sum of the decrease in the loss function resulting from all splits that use a covariate for each tree. The mean of the variable importance of all trees results in the variable importance for the forest.
## S3 method for class 'SDForest'
varImp(object)
object |
an SDForest object |
A named vector of variable importance
Markus Ulmer
varImp.SDTree
SDForest
data(iris)
fit <- SDForest(Sepal.Length ~ Sepal.Width + Petal.Length + Petal.Width,
iris, nTree = 10, cp = 0.5)
varImp(fit)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.