Skip to content

v1.14.0

Choose a tag to compare

@sk818 sk818 released this 22 Sep 16:24
· 31 commits to main since this release

spatial_kfold: a real geographic split for k-fold cross-validation (opt-in, off by default). Ordinary k-fold had no notion of location -- neighbouring points, or points from the same field, could land on opposite sides of a fold. New _spatial_block_groups() assigns each point to a geographic block via a quantile grid over (lon, lat), fed into the same StratifiedGroupKFold/GroupKFold machinery group_by_field (v1.13.0) already uses. k-fold-only; takes precedence over group_by_field when both are requested. See CHANGELOG.md.