sits_pred_sample: Obtain a fraction of the predictors data frame
Description
Many machine learning algorithms (especially deep learning)
use part of the original samples as test data to adjust its hyperparameters
and to find an optimal point of convergence using gradient descent.
This function extracts a fraction of the predictors to serve as test values
for the deep learning algorithm.
Usage
sits_pred_sample(pred, frac)
Value
A fraction of the X-Y predictors.
Arguments
pred
X-Y predictors: a data.table with one row per sample.