Learn R Programming

sits (version 1.12.0)

.sits_predict: Predict class based on the trained models

Description

Given a sits tibble time series and a model trained by sits_train, returns a predicted label. Note that this function is called inside sits_classify, and sits_classify_raster, so the user does not need to explicitly use it. Please see the above-mentioned classification functions.

Usage

.sits_predict(distances_DT = NULL, ml_model, ...)

Arguments

distances_DT

Set of distance metrics to each of the classes.

ml_model

Model trained by sits_train.

...

Other parameters to be passed to the model function.

Value

A vector of predicted labels.