Skip to content
This repository has been archived by the owner on Sep 9, 2024. It is now read-only.

Use block-wise spatial sampling for train/test splitting #30

Open
nshaud opened this issue Nov 20, 2020 · 0 comments
Open

Use block-wise spatial sampling for train/test splitting #30

nshaud opened this issue Nov 20, 2020 · 0 comments
Assignees
Labels
enhancement New feature or request
Milestone

Comments

@nshaud
Copy link
Owner

nshaud commented Nov 20, 2020

The current spatially disjoint train/test split divides the image in 2 for each class. However there might be spatial correlations between the pixels for those regions and this approach is not well-suited to repeated runs or cross-validation anyway. A more robust way to perform a spatially disjoint split is to extract random blocks (i.e. windows larger than the model's patch size) with constraints on class percentages.

See e.g. BlockCV that does this kind of thing in R.

@nshaud nshaud added the enhancement New feature or request label Nov 20, 2020
@nshaud nshaud added this to the 0.1.0 milestone Nov 20, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants