summary.sits_accuracy | R Documentation |
This is a generic function. Parameters depend on the specific type of input.
## S3 method for class 'sits_accuracy'
summary(object, ...)
object |
Object of class "sits_accuracy". |
... |
Further specifications for summary. |
A summary of the sample accuracy
Gilberto Camara, gilberto.camara@inpe.br
if (sits_run_examples()) {
data(cerrado_2classes)
# split training and test data
train_data <- sits_sample(cerrado_2classes, frac = 0.5)
test_data <- sits_sample(cerrado_2classes, frac = 0.5)
# train a random forest model
rfor_model <- sits_train(train_data, sits_rfor())
# classify test data
points_class <- sits_classify(
data = test_data,
ml_model = rfor_model
)
# measure accuracy
acc <- sits_accuracy(points_class)
summary(acc)
}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.