Further model details can be found in the source link below.
In calls to varimp for BARTMachineModel, argument
metric may be spedified as "splits" (default) for the
proportion of time each predictor is chosen for a splitting rule or as
"trees" for the proportion of times each predictor appears in a tree.
Argument num_replicates is also available to control the number of
BART replicates used in estimating the inclusion proportions [default: 5].
Variable importance is automatically scaled to range from 0 to 100. To
obtain unscaled importance values, set scale = FALSE. See example
below.
# NOT RUN {model_fit <- fit(sale_amount ~ ., data = ICHomes, model = BARTMachineModel)
varimp(model_fit, metric = "splits", num_replicates = 20, scale = FALSE)
# }# NOT RUN {# }