Obtain categorical id and predictor labels for time series samples
Obtain categorical id and predictor labels for time series samples
Predictors are X-Y values required for machine learning algorithms, organized as a data table where each row corresponds to a training sample. The first two columns of the predictors table are categorical ("label_id" and "label"). The other columns are the values of each band and time, organized first by band and then by time. This function returns the numeric values associated to each sample.
sits_pred_references(pred)
Arguments
pred: X-Y predictors: a data.frame with one row per sample.
Returns
A character vector with labels associated to training samples.
Examples
if(sits_run_examples()){ pred <- sits_predictors(samples_modis_ndvi) ref <- sits_pred_references(pred)}