
Last chance! 50% off unlimited learning
Sale ends in
Plots the important variables in an extreme gradient boosting.
# S3 method for xgb_model
plot(x, ..., n_trees = 3)
A plot object.
Object of class "xgb_model".
Further specifications for plot.
Number of trees to be plotted
Gilberto Camara, gilberto.camara@inpe.br
if (sits_run_examples()) {
# Retrieve the samples for Mato Grosso
# train an extreme gradient boosting
xgb_model <- sits_train(samples_modis_4bands,
ml_method = sits_xgboost())
# plot the model
plot(xgb_model)
}
Run the code above in your browser using DataLab