Learn R Programming

sits (version 1.1.0)

sits_show_prediction: 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)

Value

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

Arguments

class

A SITS tibble that has been classified.

Author

Gilberto Camara, gilberto.camara@inpe.br

Examples

Run this code
if (sits_run_examples()) {
    # Retrieve the samples for Mato Grosso
    # train a tempCNN model
    ml_model <- sits_train(samples_modis_4bands, ml_method = sits_tempcnn)
    # classify the point
    bands_model <- sits_bands(ml_model)
    point_4bands <- sits_select(point_mt_6bands, bands = bands_model)
    point_class <- sits_classify(point_4bands, ml_model)
    sits_show_prediction(point_class)
}

Run the code above in your browser using DataLab