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()
)
plot(xgb_model)
}
Run the code above in your browser using DataLab