Learn R Programming

sits (version 1.4.0)

sits_pred_normalize: Normalize predictor values

Description

Most machine learning algorithms require data to be normalized. This applies to the "SVM" method and to all deep learning ones. To normalize the predictors, it is required that the statistics per band for each sample have been obtained by the "sits_stats" function.

Usage

sits_pred_normalize(pred, stats)

Value

A normalized set of predictor values

Arguments

pred

X-Y predictors: a data.table with one row per sample.

stats

The output of the "sits_stats" function applied to the samples.

Author

Gilberto Camara, gilberto.camara@inpe.br

Examples

Run this code
if (sits_run_examples()) {
     summary(samples_modis_ndvi)
}

Run the code above in your browser using DataLab