mlr3spatiotempcv

mlr3spatiotempcv-package

mlr3spatiotempcv: Spatiotemporal Resampling Methods for 'mlr3'

Spatiotemporal Blocking Methods

These methods use square/rectangular blocks for partitioning.

ResamplingSpCVBlock

(blockCV) Spatial block resampling

ResamplingRepeatedSpCVBlock

(blockCV) Repeated spatial block resampling

ResamplingSpCVTiles

(sperrorest) Spatial "Tiles" resampling

ResamplingRepeatedSpCVTiles

(sperrorest) Repeated spatial "tiles" resampling

Spatiotemporal Buffering Methods

These methods support using buffering zones which eventually remove observations between train and test sets.

ResamplingSpCVBuffer

(blockCV) Spatial buffering resampling

ResamplingSpCVDisc

(sperrorest) Spatial "disc" resampling

ResamplingRepeatedSpCVDisc

(sperrorest) Repeated spatial "disc" resampling

ResamplingSptCVCstf

(CAST) "Leave-location-and-time-out" resampling

ResamplingRepeatedSptCVCstf

(CAST) Repeated "leave-location-and-time-out" resampling

Spatiotemporal Clustering Methods

These methods make use of clustering methods (e.g. k-means) to create (equally-sized) partitions.

ResamplingSpCVCoords

(sperrorest) Coordinate-based k-means clustering

ResamplingRepeatedSpCVCoords

(sperrorest) Repeated coordinate-based k-means clustering

ResamplingSpCVDisc

(sperrorest) Spatial "disc" resampling

ResamplingRepeatedSpCVDisc

(sperrorest) Repeated spatial "disc" resampling

ResamplingSptCVCluto

(skmeans) Spatiotemporal clustering resampling

ResamplingRepeatedSptCVCluto

(skmeans) Repeated spatiotemporal clustering resampling

Feature Space Clustering Methods

These methods cluster in the feature space and not (necessarily) in space or time.

ResamplingSpCVEnv

(blockCV) "Environmental blocking" resampling

ResamplingRepeatedSpCVEnv

(blockCV) Repeated "environmental blocking" resampling

Factor/Predefined Groups Partitioning Methods

These methods use (multiple) factor-variables / predefined groups to create partitions

ResamplingSptCVCstf

(CAST) "Leave-location-and-time-out" resampling

ResamplingRepeatedSptCVCstf

(CAST) Repeated "leave-location-and-time-out" resampling

Spatiotempral Tasks

Classification and regression tasks.

TaskRegrST

Create a Spatiotemporal Regression Task

as_task_regr_st()

Convert to a Spatiotemporal Regression Task

as_task_regr()

Convert to a Regression Task

TaskClassifST

Crate a Spatiotemporal Classification Task

as_task_classif_st()

Convert to a Spatiotemporal Classification Task

as_task_classif()

Convert to a Classification Task

Spatiotempral Example Datasets

Tasks appended to the mlr_tasks dictionary.

cookfarm_sample

Cookfarm Profiles Regression Task

diplodia

Diplodia Classification Task

ecuador

Ecuador Classification Task

Visualization of spatiotemporal partitions

autoplot(<ResamplingCV>) autoplot(<ResamplingRepeatedCV>) plot(<ResamplingCV>) plot(<ResamplingRepeatedCV>)

Visualization Functions for Non-Spatial CV Methods.

autoplot(<ResamplingSpCVBlock>) autoplot(<ResamplingRepeatedSpCVBlock>) plot(<ResamplingSpCVBlock>) plot(<ResamplingRepeatedSpCVBlock>)

Visualization Functions for SpCV Block Methods.

autoplot(<ResamplingSpCVBuffer>) plot(<ResamplingSpCVBuffer>)

Visualization Functions for SpCV Buffer Methods.

autoplot(<ResamplingSpCVCoords>) autoplot(<ResamplingRepeatedSpCVCoords>) plot(<ResamplingSpCVCoords>) plot(<ResamplingRepeatedSpCVCoords>)

Visualization Functions for SpCV Coords Methods.

autoplot(<ResamplingSpCVDisc>) autoplot(<ResamplingRepeatedSpCVDisc>) plot(<ResamplingSpCVDisc>) plot(<ResamplingRepeatedSpCVDisc>)

Visualization Functions for SpCV Disc Method.

autoplot(<ResamplingSpCVEnv>) autoplot(<ResamplingRepeatedSpCVEnv>) plot(<ResamplingSpCVEnv>) plot(<ResamplingRepeatedSpCVEnv>)

Visualization Functions for SpCV Env Methods.

autoplot(<ResamplingSpCVTiles>) autoplot(<ResamplingRepeatedSpCVTiles>) plot(<ResamplingSpCVTiles>) plot(<ResamplingRepeatedSpCVTiles>)

Visualization Functions for SpCV Tiles Method.

autoplot(<ResamplingSptCVCluto>) autoplot(<ResamplingRepeatedSptCVCluto>) plot(<ResamplingSptCVCluto>) plot(<ResamplingRepeatedSptCVCluto>)

Visualization Functions for SptCV Cluto Methods.

autoplot(<ResamplingSptCVCstf>) autoplot(<ResamplingRepeatedSptCVCstf>) plot(<ResamplingSptCVCstf>) plot(<ResamplingRepeatedSptCVCstf>)

Visualization Functions for SptCV Cstf Methods.