summary.sits_accuracy {sits} | R Documentation |
Summarize accuracy matrix for training data
Description
This is a generic function. Parameters depend on the specific type of input.
Usage
## S3 method for class 'sits_accuracy'
summary(object, ...)
Arguments
object |
Object of classe "sits_accuracy". |
... |
Further specifications for summary. |
Value
A summary of the sample accuracy
Author(s)
Gilberto Camara, gilberto.camara@inpe.br
Examples
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)
}
[Package sits version 1.5.0 Index]