xgb-deepmodel
OfficialSegment-wise XGBoost, then Stacking for lift
Authoraliyun
Version1.0.0
Installs0
System Documentation
What problem does it solve?
This Skill addresses how to improve financial modeling performance when different customer segments behave differently, by training separate XGBoost sub-models per segment and then fusing them via Stacking to reduce global bias and better capture segment-specific patterns.
Core Features & Use Cases
- Segmented XGBoost sub-model training: Train multiple XGBoost models using mutually exclusive segment conditions, with optional per-segment feature sets and positive class weighting.
- OOF Stacking fusion: Generate out-of-fold (OOF) predictions from each sub-model and train a meta-learner (conservative parameters) to combine them safely.
- Ensemble vs baseline comparison report: Compare the best sub-model vs Stacking ensemble against an XGBoost single-model baseline using Train/Val/OOT AUC/KS and gap-based decision guidance.
- Use cases: segment modeling, customer stratification, sub-model fusion, and advanced ensemble learning scenarios (e.g., banking/insurance/securities risk scoring).
Quick Start
Train segment sub-models, fuse them with stacking, and generate an ensemble vs baseline comparison report for your labeled dataset using the three scripts in order: sub_trainer → stacker → comparator.
Dependency Matrix
Required Modules
jsonnumpypandasxgboostscikit-learn
Components
scripts
💻 Claude Code Installation
Recommended: Let Claude install automatically. Simply copy and paste the text below to Claude Code.
Please help me install this Skill: Name: xgb-deepmodel Download link: https://github.com/aliyun/qwen-dianjin/archive/main.zip#xgb-deepmodel Please download this .zip file, extract it, and install it in the .claude/skills/ directory.
Agent Skills Search Helper
Install a tiny helper to your Agent, search and equip skill from 471,000+ vetted skills library on demand.