create.test.index.blockCV | R Documentation |
This function provides resamples for test data to be used in evaluate
or ROCcurve
The resamples are based in the blocks created by spatialBlock
.
create.test.index.blockCV(speciesData, sb)
speciesData |
A spatialPoints or spatialPointsDataFrame with the locations for each test data. |
sb |
A |
The folds of each block are assigned to the test data based on their location.
If a point does not fall over any block, then the fold of the block closest to that point is
assigned, with a warning.
For each resample, all folds except one are used, and this is done for each fold.
The order of points in the spatialPoints object must be the same from the data.frame used for the test data.
A list of test data index to be used in each resampling.
Other spatial:
blockCV2fold()
,
blockENM2fold()
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.