ensembling

Combine predictions from multiple machine learning models using weighted blending, rank averaging, or stacking.

Updated Feb 24, 2026
One-click install
npx skills add https://github.com/KameniAlexNea/gladius-agent --skill ensembling
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: ensembling
Source: https://github.com/KameniAlexNea/gladius-agent/tree/main/gladius/utils/templates/skills/ensembling
Command: npx skills add https://github.com/KameniAlexNea/gladius-agent --skill ensembling

SYSTEM DOCUMENTATION & REQUIREMENTS

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

What problem does it solve?

This Skill addresses the common machine learning challenge where individual models reach a performance plateau, enabling users to achieve higher scores by intelligently combining their predictions.

Core Features & Use Cases

  • Prediction Combination: Integrates multiple model predictions using various techniques like weighted blending, rank averaging, stacking, and greedy hill-climbing.
  • Model Diversity Assessment: Includes checks for pairwise OOF correlation to ensure ensemble members contribute unique information.
  • Use Case: After training several diverse models (e.g., LightGBM, XGBoost, a Neural Network) for a Kaggle competition, use this Skill to blend their out-of-fold predictions to create a final submission that outperforms any single model.

Quick Start

Use the ensembling skill to combine the OOF predictions from 'lgbm' and 'xgb' models with their corresponding test predictions, optimizing weights using the provided training labels 'y_train'.

Frequently Asked Questions about ensembling

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

FAQPage Schema
How do I combine predictions from multiple machine learning models to improve accuracy?

Combine predictions from multiple machine learning models to improve accuracy using weighted blending, rank averaging, stacking with meta-learners, and greedy hill-climbing to optimize the final output beyond individual model plateaus.

What is hill climbing for ensemble optimization in machine learning?

Hill climbing for ensemble optimization is a greedy technique that iteratively selects and weights model predictions to maximize validation scores, pushing overall accuracy higher when individual models reach a performance plateau.

How do I check model diversity before stacking predictions?

Check model diversity before stacking predictions by calculating pairwise out-of-fold correlation, ensuring each ensemble member contributes unique information rather than redundant predictions to the combined output.

Can I use scikit-learn for stacking and prediction blending?

Yes, you can use scikit-learn for stacking and prediction blending alongside scipy, pandas, and numpy to implement meta-learners and optimize weights for your combined machine learning model outputs.

When should I use rank averaging instead of weighted blending for predictions?

Use rank averaging instead of weighted blending when model predictions have varying scales or outliers, as ranking normalizes distributions before combination, whereas weighted blending directly averages raw probabilities or continuous scores.

What are the limitations of ensembling with out-of-fold predictions?

Limitations of ensembling with out-of-fold predictions include the requirement of at least two diverse models with solid cross-validation scores, as combining highly correlated models provides minimal performance improvement over individual baselines.