Description Usage Arguments Details Value Examples
This function separates samples into polygons for cross-validation so that all pixels of a polygon are allocated to a single fold. This avoids overfitting of the result due to spatial correlation present in geographically close samples.
1 | fold_poligon(nfold, poligon, seed = 123)
|
nfold |
Number of folds to be created |
poligon |
Vector with the sampling polygons |
seed |
number tp seed generator |
details
A list with folds;. Each fold contains line number of data to be uses in cross validation
1 2 3 4 | ## Not run:
fold_poligon(nfold = 10, poligon =df$poligon)
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.