AEFS_Checkpoints / README.md
MohsinElis's picture
Disable Dataset Viewer (viewer: false) β€” repo is a checkpoints/artifacts store, not a row-preview dataset
f476127 verified
|
Raw History Blame Contribute Delete
15.2 kB
---
license: mit
task_categories:
- tabular-classification
task_ids:
- tabular-multi-class-classification
language:
- en
pretty_name: "AEFS: Canonical Cloud Execution Checkpoints & Artifacts"
tags:
- software-defect-prediction
- cross-project-defect-prediction
- feature-selection
- TreeSHAP
- explainable-ai
- LightGBM
- LOPO-cross-validation
- software-metrics
- reproducibility
size_categories:
- 1K<n<10K
viewer: false
---
# AEFS: Canonical Cloud Execution Checkpoints & Artifacts
> **Paper:** *An Adaptive Explainable Feature Selection Framework for Cross-Project Software Defect Prediction (AEFS)*
> **Authors:** Mohsin Ibna Hossain, Tasnim Bari Jenny, Afroja Hoque Shornaly, Md. Khairul Alam Mazumder, Saikat Baul, Md Rakibul Islam, Muhammad Firoz Mridha
> **License:** [MIT](https://opensource.org/licenses/MIT)
## Quick Links
| Resource | URL |
|----------|-----|
| πŸ“„ Code & Summary Tables | [github.com/MIHMahmudEli/aefs](https://github.com/MIHMahmudEli/aefs) |
| πŸ€— This HF Repository | [huggingface.co/datasets/MohsinElis/AEFS_Checkpoints](https://huggingface.co/datasets/MohsinElis/AEFS_Checkpoints) |
---
## Overview
This repository contains **9,327 canonical cloud execution checkpoints and analytical artifacts** from the full experimental evaluation of the **AEFS** (Adaptive Explainable Feature Selection) framework for cross-project software defect prediction (CPDP).
All artifacts were generated by a **16-worker pinned Kaggle fleet** executing Leave-One-Project-Out (LOPO) cross-validation across four benchmark software defect datasets. The repository serves as a single source of truth for all empirical results reported in the manuscript.
**Total size:** ~6.63 GiB (7,120,859,451 bytes)
**Artifact types:** per-fold metrics, selected feature sets, TreeSHAP attribution matrices, out-of-fold predictions, model checkpoints, diagnostic figures, sensitivity sweeps, and ablation results.
---
## Repository Contents
### What is stored here
| Category | Files | Description |
|----------|-------|-------------|
| **Metrics CSVs** | Per fold | Per-(method, model, seed) MCC, F1, AUC-ROC, feature counts, runtimes |
| **Selected Feature JSONs** | Per fold | Method β†’ {n_features, Jaccard stability, feature list} |
| **Confusion Matrix JSONs** | Per fold | TP/FP/TN/FN and derived metrics per (method, model, seed) |
| **Stage Trace JSONs** | Per fold | Stage-wise feature counts and timings (AEFS pipeline stages) |
| **Metadata JSONs** | Per fold | Execution environment, row counts, method/model configuration |
| **Predictions Parquets** | Per fold | Instance-level y_true, y_pred, y_proba for all methods |
| **TreeSHAP Parquets** | P1, P2 | Exact TreeSHAP per-(instance, feature) matrix β€” AEFS + LightGBM only |
| **Model Checkpoints** | P1 (80 folds) | Serialized LightGBM `.joblib`, booster `.txt`, RandomForest `.joblib`, SVM `.joblib` |
| **Diagnostic Figures** | P1 (selected) | Per-fold confusion matrices, ROC curves, TreeSHAP bar plots (PNG + PDF) |
| **Sensitivity CSVs** | P3 | SHAP threshold, stability threshold, runtime, convergence sweeps |
| **Completion Markers** | All folds | `FOLD_DONE.json`, `TASK_DONE.json` with run nonce, data MD5, row counts |
### What is NOT stored here
The raw benchmark datasets (AEEEM, TeraPromise/Jureczko, NASA MDP, ReLink) are **not** included in this repository. They are publicly available from their original sources (see [Benchmark Datasets](#benchmark-datasets)). Refer to the GitHub repository for download scripts.
---
## Repository Structure
```
MohsinElis/AEFS_Checkpoints/
β”œβ”€β”€ manifest.json # Pinned environment manifest & dataset MD5 checksums
β”œβ”€β”€ status/
β”‚ └── watchdog_state.json # Execution watchdog state (informational, 93/95 completed)
└── runs/
β”œβ”€β”€ P1_main_*/ # Canonical seed=42 main evaluation
β”‚ └── <pool>/<target>/seed_42/
β”‚ β”œβ”€β”€ metrics.csv
β”‚ β”œβ”€β”€ selected_features.json
β”‚ β”œβ”€β”€ confusion_matrices.json
β”‚ β”œβ”€β”€ stage_trace.json
β”‚ β”œβ”€β”€ metadata.json
β”‚ β”œβ”€β”€ predictions.parquet
β”‚ β”œβ”€β”€ treeshap.parquet
β”‚ β”œβ”€β”€ FOLD_DONE.json
β”‚ β”œβ”€β”€ TASK_DONE.json
β”‚ β”œβ”€β”€ checkpoints/
β”‚ β”‚ β”œβ”€β”€ AEFS_lightgbm.joblib
β”‚ β”‚ β”œβ”€β”€ AEFS_lightgbm_booster.txt
β”‚ β”‚ β”œβ”€β”€ AEFS_random_forest.joblib # AEEEM, NASA, ReLink only
β”‚ β”‚ └── AEFS_svm.joblib # AEEEM, NASA, ReLink only
β”‚ └── figures/
β”‚ β”œβ”€β”€ diag_*.png / diag_*.pdf # Confusion matrix + ROC overlay
β”‚ └── shap_*.png / shap_*.pdf # TreeSHAP bar plots
β”œβ”€β”€ P2_ms4_*/ # 5-seed AEFS multi-seed robustness (AEFS only)
β”‚ └── <pool>/<target>/seed_{7,123,555,2024}/
β”‚ └── [metrics, features, preds, treeshap, FOLD_DONE, TASK_DONE]
β”œβ”€β”€ P3_sens_*/ # Sensitivity parameter sweeps
β”‚ └── <pool>/<target>/
β”‚ └── sensitivity.csv
β”œβ”€β”€ P4_abl_*/ # Component ablation study
β”‚ └── <pool>/<target>/seed_42/
β”‚ └── [metrics, features, preds, FOLD_DONE, TASK_DONE]
β”œβ”€β”€ P5_cpdp_*/ # CPDP-specific baselines
β”‚ └── <pool>/<target>/seed_42/
β”‚ └── [metrics, features, preds, FOLD_DONE, TASK_DONE]
β”œβ”€β”€ P6_ms4_*/ # Multi-seed baselines (AEEEM, NASA, ReLink)
β”‚ └── <pool>/<target>/seed_{7,123,555,2024}/
β”‚ └── [metrics, features, preds, FOLD_DONE, TASK_DONE]
└── P7_ms4_*/ # Multi-seed baselines (TeraPromise)
└── tera/<target>/seed_{7,123,555,2024}/
└── [metrics, features, preds, FOLD_DONE, TASK_DONE]
```
### Experimental Phase Breakdown
| Phase | Description | Targets | Seeds | Methods | Files | Size |
|-------|-------------|---------|-------|---------|-------|------|
| **P1_main** | Main evaluation grid | 80 (all pools) | 42 | 6 methods Γ— 3 models | 1,228 | ~5,994 MiB |
| **P2_ms4** | 5-seed AEFS robustness | 80 (all pools) | 7, 123, 555, 2024 | AEFS only | 4,594 | ~764 MiB |
| **P3_sens** | Sensitivity sweeps | 80 (all pools) | 42 | AEFS only | 173 | ~0.15 MiB |
| **P4_abl** | Component ablation | 80 (all pools) | 42 | noRUP, noSFS, noSHAP | 498 | ~4 MiB |
| **P5_cpdp** | CPDP-specific baselines | 80 (all pools) | 42 | MI_DS, MI_TW | 572 | ~2.96 MiB |
| **P6_ms4** | Multi-seed baselines (AEEEM, NASA, ReLink) | 48 folds | 7, 123, 555, 2024 | Baselines | 340 | ~5.88 MiB |
| **P7_ms4** | Multi-seed baselines (TeraPromise) | 272 folds | 7, 123, 555, 2024 | Baselines | 1,918 | ~20.38 MiB |
| **Root + status** | manifest, watchdog | β€” | β€” | β€” | 4 | ~0.07 MiB |
| **Total** | | | | | **9,327** | **~6.63 GiB** |
---
## Per-Fold File Reference
| File | Description | Present in Phases |
|------|-------------|-------------------|
| `metrics.csv` | Per-(method, model, seed): MCC, F1, AUC-ROC, n_features, runtime (s) | P1, P2, P4, P5, P6, P7 |
| `selected_features.json` | Method β†’ {n_features, jaccard_stability, features[]} | P1, P2, P4, P5, P6, P7 |
| `confusion_matrices.json` | TP, FP, TN, FN + precision, recall, MCC, F1 per (method, model, seed) | P1, P2, P4, P5, P6, P7 |
| `stage_trace.json` | AEFS pipeline stage-wise feature counts and wall-clock timings | P1, P2, P5, P6, P7 |
| `metadata.json` | Python env, numpy/pandas/sklearn/lgbm versions, row counts, config | P1, P2, P4, P5, P6, P7 |
| `predictions.parquet` | Instance-level: index, y_true, y_pred, y_proba per (method, model, seed) | P1, P2, P4, P5, P6, P7 |
| `treeshap.parquet` | Exact TreeSHAP matrix: rows=instances, cols=features (AEFS+LightGBM) | P1, P2 only |
| `checkpoints/AEFS_lightgbm.joblib` | Fitted scikit-learn LightGBM classifier | P1 (80 folds) |
| `checkpoints/AEFS_lightgbm_booster.txt` | LightGBM booster in native text format | P1 (80 folds) |
| `checkpoints/AEFS_random_forest.joblib` | Fitted RandomForestClassifier | P1 AEEEM, NASA, ReLink |
| `checkpoints/AEFS_svm.joblib` | Fitted SVC (RBF kernel) | P1 AEEEM, NASA, ReLink |
| `figures/diag_*.png` / `.pdf` | Per-fold confusion matrix + ROC overlay | P1 (selected folds) |
| `figures/shap_*.png` / `.pdf` | Per-fold TreeSHAP feature importance bar plot | P1 (selected folds) |
| `sensitivity.csv` | Parameter sweep results: SHAP/stability/runtime/convergence | P3 only |
| `FOLD_DONE.json` | Completion marker: run_nonce, data MD5, row counts | All |
| `TASK_DONE.json` | Task-level summary with environment info and aggregated status | All |
---
## Benchmark Datasets
The following publicly available datasets were used for evaluation. They are **not** stored in this repository.
| Dataset | Reference | Projects | Metrics | Modules |
|---------|-----------|----------|---------|---------|
| **AEEEM** | D'Ambros et al. (2012) | 5 Java systems | 61 | 5,222 |
| **TeraPromise / Jureczko** | Jureczko & Madeyski (2010) | 68 Java versions | 20 | 52,540 |
| **NASA MDP** | Shepperd et al. (2013) | 4 C systems (CM1, MW1, PC3, PC4) | 37 | 3,001 |
| **ReLink** | Wu et al. (2011) | 3 systems (Apache, Safe, ZXing) | 26 | 604 |
Access via the [PROMISE Software Engineering Repository](http://promise.site.uottawa.ca/SERepository/) and the [AEEEM dataset page](https://github.com/logpai/loghub).
---
## Execution Environment
Artifacts in this repository were generated by the **canonical 16-worker Kaggle CPU fleet** using the following pinned environment (verified against all 526 `metadata.json` files):
| Component | Version |
|-----------|---------|
| Python | 3.13.18 (Kaggle kernel, pinned) |
| numpy | 2.5.1 |
| pandas | 3.0.5 |
| scipy | 1.18.1 |
| scikit-learn | 1.9.0 |
| LightGBM | 4.7.0 |
| imbalanced-learn | 0.14.2 |
| huggingface_hub | β‰₯ 0.25.0 |
| TreeSHAP backend | `shap.TreeExplainer` (exact, `pred_contrib=True`) |
**Hardware:** Kaggle CPU instances β€” Ubuntu 22.04 LTS, 4 vCPUs (Intel Xeon @ 2.30 GHz), 16 GB RAM
**Execution date:** 2026-11-25 (UTC: 09:21–16:53)
**Random states:** `RANDOM_STATE=42` (P1, P3, P4, P5); seeds {7, 42, 123, 555, 2024} (P2, P6, P7)
> **Note on cross-platform reproducibility:** The manuscript (Section 4.5) documents the local reference environment (Python 3.10.12, scikit-learn 1.5.2, LightGBM 4.5.0, SHAP 0.46.0 on Ubuntu 22.04 LTS). Cross-platform replication between the local reference environment and the Kaggle execution environment yielded metric variances within **0.001** across all folds. See [`docs/ENVIRONMENT.md`](https://github.com/MIHMahmudEli/aefs/blob/main/docs/ENVIRONMENT.md) in the GitHub repository for full details.
---
## Key Empirical Results (Verified from P1_main)
The following mean results for AEFS with LightGBM are verified directly from the `metrics.csv` files in this repository (P1_main, seed=42):
| Pool | Avg. Features Selected | Jaccard Stability | MCC | F1 | AUC-ROC |
|------|------------------------|-------------------|-----|----|---------|
| AEEEM | 6.60 Β± 1.5 | 0.770 | 0.303 | 0.364 | 0.706 |
| TeraPromise | 5.00 Β± 0.0 | 0.767 | 0.171 | 0.266 | 0.683 |
| NASA MDP | 8.00 Β± 2.4 | 0.694 | 0.005 | 0.074 | 0.631 |
| ReLink | 5.67 Β± 0.6 | 0.778 | 0.228 | 0.491 | 0.645 |
**Feature compression:** 75.0–89.2% reduction from original feature space across all benchmark suites.
**Runtime:** 4.09–64.76 s/fold for offline AEFS selection; LightGBM inference speedup 1.43×–3.89Γ— over full-feature baselines.
---
## How to Access This Repository
### Download lightweight analytical files only (~68 MB)
```python
from huggingface_hub import snapshot_download
snap_path = snapshot_download(
repo_id="MohsinElis/AEFS_Checkpoints",
repo_type="dataset",
allow_patterns=[
"manifest.json",
"runs/**/metrics.csv",
"runs/**/selected_features.json",
"runs/**/stage_trace.json",
"runs/**/confusion_matrices.json",
"runs/**/sensitivity.csv",
"runs/**/predictions.parquet",
"runs/**/treeshap.parquet",
],
)
print(f"Downloaded to: {snap_path}")
```
### Download full repository (including model checkpoints and figures, ~6.6 GiB)
```python
from huggingface_hub import snapshot_download
snap_path = snapshot_download(
repo_id="MohsinElis/AEFS_Checkpoints",
repo_type="dataset",
)
print(f"Downloaded to: {snap_path}")
```
### Programmatic access to individual files
```python
from huggingface_hub import hf_hub_download
import pandas as pd
# Example: load metrics for a specific fold
metrics_path = hf_hub_download(
repo_id="MohsinElis/AEFS_Checkpoints",
repo_type="dataset",
filename="runs/P1_main_aeeem/aeeem/EQ/seed_42/metrics.csv",
)
df = pd.read_csv(metrics_path)
print(df)
```
---
## Reproducing Results with the GitHub Repository
```bash
# 1. Clone the code repository
git clone https://github.com/MIHMahmudEli/aefs.git
cd aefs
# 2. Install dependencies
pip install -r requirements.txt
# 3. Download and aggregate HF artifacts locally
python scripts/hf_aggregate_metrics.py
# 4. Verify statistical tables against the manuscript
python scripts/analyses.py
# 5. Reproduce all publication figures
python scripts/reproduce_all_figures.py
```
For full reproducibility documentation, see [`docs/ENVIRONMENT.md`](https://github.com/MIHMahmudEli/aefs/blob/main/docs/ENVIRONMENT.md) and [`docs/REPRODUCIBILITY.md`](https://github.com/MIHMahmudEli/aefs/blob/main/docs/REPRODUCIBILITY.md) in the GitHub repository.
---
## Citation
If you use these artifacts in your research, please cite the manuscript:
```bibtex
@software{hossain2026aefs,
title = {{AEFS}: An Adaptive Explainable Feature Selection Framework
for Cross-Project Software Defect Prediction β€” Canonical
Cloud Execution Checkpoints \& Artifacts},
author = {Hossain, Mohsin Ibna and
Jenny, Tasnim Bari and
Shornaly, Afroja Hoque and
Mazumder, Md. Khairul Alam and
Baul, Saikat and
Islam, Md Rakibul and
Mridha, Muhammad Firoz},
year = {2026},
url = {https://huggingface.co/datasets/MohsinElis/AEFS_Checkpoints},
license = {MIT}
}
```
---
## License
This repository is released under the **MIT License**.
Copyright (c) 2026 Mohsin Ibna Hossain, Tasnim Bari Jenny, Afroja Hoque Shornaly, Md. Khairul Alam Mazumder, Saikat Baul, Md Rakibul Islam, Muhammad Firoz Mridha.
Permission is hereby granted, free of charge, to any person obtaining a copy of these artifacts and associated documentation to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies, subject to the conditions of the MIT License included in the accompanying [GitHub repository](https://github.com/MIHMahmudEli/aefs/blob/main/LICENSE).
---
## Contact
For questions about this dataset or the AEFS framework, please open an issue in the [GitHub repository](https://github.com/MIHMahmudEli/aefs/issues).