View source: R/check_split_balance.R
check_splits_balance | R Documentation |
Check the balance of presences vs pseudoabsences among splits
check_splits_balance(splits, .col)
splits |
the data splits (an |
.col |
the column containing the presences |
a tibble of the number of presences and pseudoabsences in the assessment and analysis set of each split (or training and testing in an initial split)
lacerta_thin <- readRDS(system.file("extdata/lacerta_thin_all_vars.rds",
package = "tidysdm"
))
lacerta_cv <- spatial_block_cv(lacerta_thin, v = 5)
check_splits_balance(lacerta_cv, class)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.