Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Blocking strategy with equal number of occupied sites per block ? #34

Open
bpetitpi opened this issue Mar 28, 2023 · 2 comments
Open

Blocking strategy with equal number of occupied sites per block ? #34

bpetitpi opened this issue Mar 28, 2023 · 2 comments
Labels
enhancement New feature or request

Comments

@bpetitpi
Copy link

Hello @rvalavi and thank you for this very useful package.

I am currently running some SDMs on many species, with very different types of distributions (rare, common, clustered, sparse...) and I was looking for a blocking strategy that can keep the same prevalence per fold (like the figure 4e and 4f in Roberts et al. 2017). For me, it seems to be the best way to compare models and also to avoid "empty partitions" (i.e. partitions without any presences).

If I am correct, such strategy isn't (yet?) implemented in blockCV, isnt'it ?

If this is not implemented, would you be aware of alternative tools that could split my folds spatially, while keeping the prevalence between presences and background ?

Many thanks if you can help me with this trick.

Blaise

@rvalavi
Copy link
Owner

rvalavi commented Mar 28, 2023

Hi @bpetitpi

Thank you for your interest in blockCV.
The strategy you are looking for is not yet implemented. I will look into it for the next version but it won't be very soon. An alternative solution is to use a suitable spatial block size in the blockCV::cv_spatial function and use random folds selection to find you the best possible balanced folds.

Alternatively, I recommend looking at ENMeval 2.0 package which is also designed for SDM evaluation. Also, mlr3spatiotempcv for evaluation models with mlr3 package and CAST for evaluation models with the caret package.

I hope this are helpful.

Cheers,
Roozbeh

@bpetitpi
Copy link
Author

Thank you very much for your quick reply and the insightful tips. Before the next version, I will work with a customized work-around.

Cheers,
Blaise

@rvalavi rvalavi added the enhancement New feature or request label Apr 9, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants