# \donttest{
# Train a quantile forest.
n <- 250
p <- 10
X <- matrix(rnorm(n * p), n, p)
Y <- X[, 1] * rnorm(n)
q.forest <- quantile_forest(X, Y, quantiles = c(0.1, 0.5, 0.9))
# Calculate the 'importance' of each feature.
variable_importance(q.forest)
# }
Run the code above in your browser using DataLab