Loading...
Loading...
Contributors:
Dataset URI:
10.5281/zenodo.23113607Data 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. The four-cluster typology is derived in a companion study archived at https://doi.org/10.5281/zenodo.23076637, and the base prediction tasks are shared with a companion study archived at https://doi.org/10.5281/zenodo.23087956. The indicator values are official statistics from Statistics Indonesia (Badan Pusat Statistik), reproduced unchanged; please cite the original BPS tables as well as this record. Code: MIT licence. Data and result files: CC BY 4.0. Version 1.1.0 adds a sensitivity analysis in which the eight feature variants are repeated with k = 3 and 5 clusters for the four models other than XGBoost, and a check that a test row's own target can be recovered from its centroid distances and predictors.
Keyword(s):
data leakage; k-means; cross-validation; gradient boosting; XGBoost; feature engineering; environmental quality index; Indonesia; reproducibility.
MeSH Term(s):
Grants and Funding:
No Grants or Funding Data Available
Associated Publication(s):
No Associated Publication Data Available
Supplementary Data:
No Supplementary Data Available
Related Dataset(s):
No Related Dataset Data Available
The National Library of Medicine (NLM) provides information about biomedical datasets. Inclusion on an NLM Web page does not imply endorsement of, or agreement with, the contents by NLM or the National Institutes of Health. Learn more: NLM Web Policies (nih.gov)