plot.xgb_model: Plot XGB model

View source: R/sits_plot.R

plot.xgb_modelR Documentation

Plot XGB model

Description

Plots the important variables in an extreme gradient boosting.

Usage

## S3 method for class 'xgb_model'
plot(x, ..., n_trees = 3)

Arguments

x

Object of class "xgb_model".

...

Further specifications for plot.

n_trees

Number of trees to be plotted

Value

A plot object.

Note

Please refer to the sits documentation available in <https://e-sensing.github.io/sitsbook/> for detailed examples.

Author(s)

Gilberto Camara, gilberto.camara@inpe.br

Examples

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()
    )
}

sits documentation built on Nov. 2, 2023, 5:59 p.m.