The blockCV package creates spatially or environmentally separated training and testing folds for cross-validation to provide a robust error estimation in spatially structured environments. See
I am trying to use blockCV with dismo::maxent.
The advantage of dismo for me is the integration with raster: I can directly plot both the model results and the prediction.
I can't get blockCV to work with dismo::maxent, because the trainSet from blockCV generates a vector. In that case, dismo::maxent wants background data; the predictors and occurrence instances are not enough.
How can I get this to work (preferably with foreach in view of its parallel processing capabilities)?
I am trying to use blockCV with dismo::maxent. The advantage of dismo for me is the integration with raster: I can directly plot both the model results and the prediction.
I can't get blockCV to work with dismo::maxent, because the trainSet from blockCV generates a vector. In that case, dismo::maxent wants background data; the predictors and occurrence instances are not enough.
How can I get this to work (preferably with foreach in view of its parallel processing capabilities)?