# NOT RUN {
# Retrieve the set of samples for Mato Grosso (provided by EMBRAPA)
# Build a machine learning model based on xgboost
xgb_model <- sits_train(samples_modis_4bands, sits_xgboost(nrounds = 10))
# get a point and classify the point with the ml_model
point.tb <- sits_select(point_mt_6bands,
bands = c("NDVI", "EVI", "NIR", "MIR")
)
class.tb <- sits_classify(point.tb, xgb_model)
plot(class.tb, bands = c("NDVI", "EVI"))
# }
# NOT RUN {
# }
Run the code above in your browser using DataLab