sits_show_prediction: Shows the predicted labels for a classified tibble

View source: R/sits_utils.R

sits_show_predictionR Documentation

Shows the predicted labels for a classified tibble

Description

This function takes a tibble with a classified time series by a machine learning method and displays the result.

Usage

sits_show_prediction(class)

Arguments

class

A SITS tibble that has been classified.

Value

Tibble with the columns "from", "to", "class"

Author(s)

Gilberto Camara, gilberto.camara@inpe.br

Examples

if (sits_run_examples()) {
    # Retrieve the samples for Mato Grosso
    # train an SVM model
    ml_model <- sits_train(samples_modis_ndvi, ml_method = sits_svm)
    # classify the point
    point_ndvi <- sits_select(point_mt_6bands, bands = "NDVI")
    point_class <- sits_classify(
        data = point_ndvi, ml_model = ml_model
    )
    sits_show_prediction(point_class)
}


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