Nothing
importance <- function(object, ...){
if (class(object)[1] == "gbm"){
beta <- gbm::relative.influence(object, ...)
return(beta)
} else if (class(object)[1] == "rfsrc"){
beta <- randomForestSRC::vimp(object, ...)
return(beta$importance)
} else { stop("Object class unrecognized")}
}
Any scripts or data that you put into this service are public.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.