powered by
Calculate measures of the relative importance of predictors in a model.
varimp(object, scale = TRUE, ...)
model fit result.
logical indicating whether importance measures should be scaled to range from 0 to 100.
arguments passed to model-specific variable importance functions.
VarImp class object.
VarImp
plot
# NOT RUN { ## Survival response example library(survival) gbm_fit <- fit(Surv(time, status) ~ ., data = veteran, model = GBMModel) (vi <- varimp(gbm_fit)) plot(vi) # }
Run the code above in your browser using DataLab