cluster-leakage-iklh: Analysis code and data for cluster-derived features and target leakage

Data and code accompanying the manuscript "Nesting alone does not prevent target leakage from cluster-derived features: evidence from small environmental data" (submitted to Environmental Modelling & Software). The package measures how much apparent accuracy k-means cluster features add to supervised models, separating genuine information from target leakage and from transductive fitting. Using the published components of Indonesia's Environmental Quality Index with air quality as the target, together with GRDP per capita and population density, it builds cluster features in eight ways that cross the clustering variables (with or without the target), the rows on which k-means is fitted (all rows or training folds only) and the encoding (label, or label plus centroid distances), and evaluates five regressors (linear regression, random forest, gradient boosting, histogram gradient boosting and XGBoost) under nested cross-validation repeated over ten fold assignments, on a 34-province cross-section and a 136-row panel grouped by province. A simulation with a known latent group structure and an oracle, and a group-held-out evaluation with per-group errors, are included. Contents: data/ (index components 2021–2024, GRDP per capita and population density, and the four-cluster typology of the companion study), code/ (a shared analysis module and fold-assignment function used in both computing environments, scripts for all non-XGBoost models, the simulation, the sensitivity analysis for k = 3 and 5, merging, every manuscript value and all figures, and a Google Colab notebook for XGBoost), results/ (every repetition, simulation cell, per-province error and sensitivity run), figures/, README.md (run order and verification notes), requirements.txt (pinned versions), CITATION.cff and licence files.

Link
https://zenodo.org/records/23113607
Found by
Zenodo
Authors
Riansyah, Andi, Purwanto, Purwanto, Gernowo, Rahmat
Categories
evaluation
Published
2026-10-03
Last seen by the radar
2026-10-03
Downloads
0
Views
4
Radar score
33.96 / 100 (how it is scored)
Why it scored so
Matched: evaluat; Recency discount: updated event ×0.5; Primary record: Zenodo
Related links
https://doi.org/10.5281/zenodo.23113607
Is this record right? If you made this work and something here is wrong or missing, tell us what to fix.

More records found by Zenodo