← ClaudeAtlas

kg-ensemblelisted

Build the best honest ensemble from ledger experiments (diversity analysis, hill climbing / weights / rank / stacking with nested CV, post-processing re-tune) and write a validated blended submission.
TranBaDat2607/claude-code-kaggle-grandmaster · ★ 2 · AI & Automation · score 76
Install: claude install-skill TranBaDat2607/claude-code-kaggle-grandmaster
# /kg-ensemble Run kgkit with the Bash tool, as `PYTHONPATH="${CLAUDE_PLUGIN_ROOT}" python -m kgkit <command>`: this command pre-approves that form for the kgkit calls it makes. Submitting, pushing or publishing still asks (so does a PowerShell `$env:` assignment). Arguments: `$ARGUMENTS` (optional explicit experiment ids; otherwise choose from the ledger). Delegate to the `ensemble-architect` agent (or follow its procedure directly for small ledgers): candidate audit (same folds/row order/scale) → correlation & diversity → `python -m kgkit blend --exp ... --truth data/train.csv:<target> --folds data/folds.csv:fold --method hill --sample data/sample_submission.csv` (+ alternative methods) → compare in-sample vs honest scores → for large libraries `--prune 40` then `--method stack --levels 1|2`, or `--method residual --base <id>` → accept the winner only if `kgkit ledger compare` says it beats the simpler blend → re-tune thresholds/rounding on the blended OOF → validate the submission. Blends that include public submission files (no OOF) cannot be scored this way: log them LB-only (`kgkit ledger add <name> lb-only --sub <file>`, then `kgkit ledger lb`) and follow `ensembling` §6. Report members, weights, single vs blended (honest) CV, and whether it deserves a submission slot. A new single model kept for its diversity is recorded `kgkit ledger decide <id> keep --member`: a plain keep would make it the accepted baseline, and the next `ledger compare` of an ensemble would r