Sponsored byOutsenseAI that finds your next clients
SponsorGROUOutbound, LinkedIn content and leads for B2B teamsSponsorOutsenseAI that finds your next clientsAd+Your tool hereSeen by people installing AI tools@Weekly picksThe best new tools, one email a week

xgb-deepmodel

Skill by aliyun

Trains separate XGBoost models for business segments, fuses them with OOF Stacking, and compares the result with a single-model baseline. Built for ensemble modeling by customer group.

  • Score 71
  • 645 stars
  • MIT
  • Updated
Works withClaude CodeClaude apps Antigravity CLI

Install xgb-deepmodel

Built from the published package, never by AI.

git clone --depth 1 https://github.com/aliyun/qwen-dianjin /tmp/qwen-dianjin && mkdir -p ~/.claude/skills && cp -r /tmp/qwen-dianjin/DianJin-SKILLS/financial-engineering-expert/xgb-deepmodel ~/.claude/skills/xgb-deepmodel

Run in your terminal. Claude Code loads skills from ~/.claude/skills automatically.

Step-by-step: install xgb-deepmodel in Claude Code

Skills can run scripts on your machine. Some need an API key: check the README.

About

xgb-deepmodel is an agent skill for segment-based ensemble modeling. It trains one XGBoost submodel per business segment, defined either by user conditions or by the unique values of a column. Each submodel is saved to its own file and reported with Train, Val and OOT AUC, KS and Gap.

The skill then fuses the submodels with OOF Stacking into a meta-learner that uses fixed conservative settings. A comparator script reports a single XGBoost baseline, optional LR and DNN baselines, the best submodel and the Stacking result. It is meant for users who want to model customer groups separately and then combine them. The three stages run in order as Python scripts, passing files between steps.

Written from the project's SKILL.md and checked against it.

What it can do

  • sub_trainerTrains XGBoost submodels for each segment and saves them as JSON files.
  • stackerFuses segment submodels with OOF Stacking into a meta-learner.
  • comparatorCompares the single-model baseline, best submodel and Stacking result.
  • Quality gatesChecks segment sample size, OOT Gap and Stacking gain against set thresholds.

What you need

  • Python
  • A data file with a target column, such as a parquet file

Try asking

  • Train XGBoost submodels for each risk segment in my dataset
  • Stack my segment submodels and compare them with a single XGBoost baseline
  • Run the comparison report for my stacked segment models

Good to know

  • Segments should be mutually exclusive, or Stacking may leak information.
  • Each segment should have at least 500 training samples.
  • The extra LR and DNN baselines use default hyperparameters, not tuned ones.
  • The meta-learner has no hyperparameter search.

Security check

A

No download-and-run commands, hidden instructions or signs of sending keys out were found.

Checked automatically: DianJin-SKILLS/financial-engineering-expert/xgb-deepmodel/SKILL.md. This looks for known risky patterns and is not a full audit. How grades work

Alternatives to xgb-deepmodel

All alternatives →
kaggle-cliKaggle
94

Guides an assistant through the Kaggle CLI, covering competitions, datasets, notebooks, models, benchmarks, authentication and quota. It is for people who use the kaggle command-line tool.

AAA Skill 7.7k
bigquery-bigframesgoogle
94

Generates Python code that uses BigQuery DataFrames (BigFrames) for data processing, analysis and machine learning on BigQuery. It is meant for Python data tasks, and the source says to use bigquery-basics for SQL-first workflows.

AAA Skill 25k
data-loadingmicrosoft
94

Discovers connected data sources and proposes loading options when a workspace lacks the data a question needs. Suited to users who want to connect database, warehouse or cloud sources from the chat.

AAA Skill 18k
data-manager-api-setupgoogle
94

Guides developers through enabling the Data Manager API, setting up Application Default Credentials, and installing its client libraries. Built for developers who are getting started with the API and need local environment and access setup.

AAA Skill 25k
managed-airflow-dag-authoringgoogle
94

Guides authoring and validating Apache Airflow DAGs for Managed Service for Apache Airflow (MSAA), formerly Cloud Composer. Built for developers who create or extend Airflow DAGs in these environments.

AAA Skill 25k
data-feedsdavila7
94

Extracts structured JSON data from over 40 websites, including Amazon, LinkedIn, Instagram, TikTok, Facebook and YouTube. Built on Bright Data's Web Data APIs, it returns product details, profiles, reviews, posts and comments from a URL.

AAA Skill 34k

Compare with kaggle-cli, bigquery-bigframes or data-loading

xgb-deepmodel: common questions

How is this different from xgb-modeling?

According to the source, this skill splits the sample by customer group, models each group separately and then fuses them. xgb-modeling trains one model on the full sample.

Does it tune hyperparameters?

Only with the --auto flag, which tunes segments whose OOT Gap is above 0.05. The meta-learner uses fixed conservative settings with no search.

What order should the scripts run in?

Run sub_trainer first, then stacker, then comparator. The stages pass their outputs through files on disk.

How do I install xgb-deepmodel?

Run the command above to copy the skill into ~/.claude/skills/. Claude Code picks it up automatically.

Is xgb-deepmodel free?

The code is published under the MIT licence. The service it connects to may have its own pricing.

Is xgb-deepmodel safe to use?

It scores 71 of 100. Grades: maintenance A, licence A, quality A. Security check: grade A, no risky patterns found in the files checked. Review the code before you install. How grades work.

What are alternatives to xgb-deepmodel?

Similar skills: kaggle-cli, bigquery-bigframes, data-loading, data-manager-api-setup.

xgb-deepmodel Install

Add to stack

Loading.