plot.xgb_model | R Documentation |
Plots the important variables in an extreme gradient boosting.
## S3 method for class 'xgb_model'
plot(x, ..., n_trees = 3)
x |
Object of class "xgb_model". |
... |
Further specifications for plot. |
n_trees |
Number of trees to be plotted |
A plot object.
Please refer to the sits documentation available in <https://e-sensing.github.io/sitsbook/> for detailed examples.
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_ndvi,
ml_method = sits_xgboost()
)
}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.