xgb-modeling

Train and evaluate XGBoost binary classification models with standardized metrics and portable artifacts.

580|66|Updated Apr 21, 2025
One-click install
npx skills add https://github.com/aliyun/qwen-dianjin --skill xgb-modeling
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: xgb-modeling
Source: https://github.com/aliyun/qwen-dianjin/tree/main/DianJin-SKILLS/financial-engineering-expert/xgb-modeling
Command: npx skills add https://github.com/aliyun/qwen-dianjin --skill xgb-modeling

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires xgboost, scikit-learn, optbinning, pandas, numpy, scipy, and includes scripts (resource) components.

What problem does it solve?

When you need to build a binary classification model quickly and convincingly, this Skill turns your chosen feature set into an XGBoost training workflow with standardized performance, stability, and model card reporting.

Core Features & Use Cases

  • Multi-feature-scheme modeling: run one feature list, run multiple feature sets, or generate feature schemes via IV/PSI/correlation/statistics selectors, then compare results side-by-side.
  • Decision-grade evaluation: produce AUC/KS/Gini plus business-oriented Lift and Bad Capture Rate metrics, with PSI and stability analysis across time windows.
  • Portable, no-platform-coupling workflow: outputs a structured result.json manifest and a human-readable modeling report in one run for downstream skills.

Quick Start

Train an XGBoost baseline on your dataset and get a full report by telling the AI: "Use xgb-modeling to train a binary model with --data_path ./examples/toy.parquet, --target y_label, and --output_dir ./outputs/run1."

Frequently Asked Questions about xgb-modeling

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I train an XGBoost binary classification model with AUC and KS evaluation?

To train an XGBoost binary classification model with AUC and KS evaluation, use this Skill to process a 0/1 target column and structured inputs to generate decision-grade metrics, stability diagnostics, and a detailed markdown report.

What is PSI stability analysis in financial binary classification modeling?

PSI stability analysis in financial binary classification modeling measures feature and model score distribution shifts across time windows, validating out-of-time performance to ensure reliable credit risk predictions.

Can I compare multiple feature selection schemes for XGBoost in one run?

You can compare multiple feature selection schemes for XGBoost in one run by passing complex feature sets via a config file, generating side-by-side performance comparisons using IV, PSI, and correlation selectors.

Does XGBoost work with scikit-learn and optbinning for feature engineering?

XGBoost works with scikit-learn and optbinning for feature engineering by integrating structured data inputs and automated binning selectors to standardize feature schemes and produce portable model artifacts.

What's the best way to evaluate XGBoost models for finance-style risk scenarios?

The best way to evaluate XGBoost models for finance-style risk scenarios is to calculate AUC, KS, Gini, Lift, and Bad Capture Rate metrics, alongside time-window performance and PSI stability analysis.

Why does my XGBoost model output require a ModelCard and result.json manifest?

Your XGBoost model output requires a ModelCard and result.json manifest to provide portable, no-platform-coupling workflow artifacts that document training logic and standardize downstream skill consumption.