# NOT RUN {
m <- xrf(Petal.Length ~ ., iris,
xgb_control = list(nrounds = 20, max_depth = 2),
family = 'gaussian')
linear_model_coefficients <- coef(m, lambda = 'lambda.1se')
# }
Run the code above in your browser using DataCamp Workspace