fold_poligon: fold poligon - separete samples of whole polygons to cross...

Description Usage Arguments Details Value Examples

Description

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.

Usage

1
fold_poligon(nfold, poligon, seed = 123)

Arguments

nfold

Number of folds to be created

poligon

Vector with the sampling polygons

seed

number tp seed generator

Details

details

Value

A list with folds;. Each fold contains line number of data to be uses in cross validation

Examples

1
2
3
4
## Not run: 
fold_poligon(nfold = 10, poligon =df$poligon)

## End(Not run)

elpidiofilho/labgeo documentation built on May 14, 2019, 9:35 a.m.