blockCV2fold | R Documentation |
Convert folds from blockCV to trainControl in caret
blockCV2fold(object)
object |
object from spatialBlock, buffering or envBlock functions of the blockCV package. |
a list that can be passed to index and indexOut of trainControl
.
biomod2Format
argument of the blockCV functions must be set to FALSE
.
Other spatial:
blockENM2fold()
,
create.test.index.blockCV()
## Not run: sb <- spatialBlock(speciesData = sptrain, biomod2Format = FALSE) # biomod2Format must be FALSE indices <- blockCV2fold(sb) control <- trainControl(index = indices$index, indexOut = indices$indexOut) # This will result in the same output control <- trainControlSDM(method = "none", spatial.folds = sb$foldID) ## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.