Getting it into your agent
One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.
npx skills add topprismdata/cultivating-ml-agent --skill model-ensemblegit clone --depth 1 https://github.com/topprismdata/cultivating-ml-agentWrote this? Show the measurements
A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.
[](https://agentmods.dev/skills/topprismdata/cultivating-ml-agent/model-ensemble)<a href="https://agentmods.dev/skills/topprismdata/cultivating-ml-agent/model-ensemble"><img src="https://agentmods.dev/badge/skills/topprismdata/cultivating-ml-agent/model-ensemble.svg" alt="Measured on agentmods" height="20"></a>What it costs to keep this loaded
Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5.1 | $0.00083 | $0.02076 |
| Opus 5 | $0.00042 | $0.01038 |
| Sonnet 5 | $0.00017 | $0.00415 |
| Haiku 4.5 | $0.00008 | $0.00208 |
Grade A, and why
model-ensemble-negative-weight-effect scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 8d ago.
A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.
Nothing flagged
None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.
How it starts
The opening of the file, as written. The whole thing — 223 lines — stays where its author put it; the contents beside it link to each section on GitHub.
Model Ensemble Negative Weight Effect
Problem
Ensembling a strong model with a weak model can actually decrease performance, even when using theoretically sound weighting strategies like exp(OOF AUC).
Context / Trigger Conditions
- Two models with significantly different validation scores (e.g., ΔAUC > 0.03)
- Weighted ensemble produces lower score than the best single model
- Weights calculated as
exp(score) / sum(exp(scores)) - Temptation to ensemble "just in case" it helps
- Models using different feature sets or strategies
Solution
Rule of Thumb: Only Ensemble Similar-Performing Models
Don't ensemble when:
Model A OOF: 0.955
Model B OOF: 0.906
ΔOOF: 0.049 ← Too large! Model B will drag down Model A
Do ensemble when:
Model A OOF: 0.955
Model B OOF: 0.953
ΔOOF: 0.002 ← Similar enough, ensemble may help
Verification Method
Before committing to ensemble, test:
# Calculate theoretical weight
import numpy as np
w_a = np.exp(0.955) / (np.exp(0.955) + np.exp(0.906)) # 0.73
w_b = np.exp(0.906) / (np.exp(0.955) + np.exp(0.906)) # 0.27
# If weaker model gets >20% weight, it's risky
print(f"Weaker model weight: {w_b:.2%}") # If >20%, be careful
Alternative Strategies
- Skip ensemble: Use best single model
- Threshold ensemble: Only include models within ΔX of best
threshold = 0.01 # Only models within 1% AUC candidates = [m for m in models if best_score - m.score < threshold] - Blend only top-N: Take top 3 models, ignore rest
- Stacking: Use meta-learner instead of simple weighted average
Example
S6E2 Heart Disease Competition:
| Model | OOF AUC | LB AUC | Weight (exp) |
|---|---|---|---|
| V3 Single | 0.95545 | 0.95358 | - |
| V4.1 Raw | 0.90639 | ~0.90 | 48.8% |
| V3+V4 Ensemble | - | 0.95348 | - |
Result: Ensemble (0.95348) < V3 Single (0.95358) < V3 Multiseed (0.95359)
Why it failed:
exp(0.95545) / (exp(0.95545) + exp(0.90639))≈ 0.512- V4.1 got 48.8% weight despite being Δ0.049 worse!
- exp归一化在小差异下几乎等于线性归一化
- Weaker model's nearly 50% weight dragged down performance
- No complementary signal between feature engineering and raw features
What this file has done since we first saw it
Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.
- 8d ago First seen · 223 lines · 83 tokens per session scan A 73d2ed14ab3b
model-ensemble-negative-weight-effect is a skill published in the GitHub repository topprismdata/cultivating-ml-agent (5 stars, last pushed 10d ago), licensed MIT. It adds 83 tokens to every session and 2,076 once invoked, about $0.0004 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.
Other skills, from other repositories
huggingface-hub
Hugging Face Hub CLI (hf) — search, download, and upload models and datasets, manage repos, query datasets with SQL, deploy inference endpoints, manage Spaces and buckets.
tensorboard
Visualize training metrics, debug models with histograms, compare experiments, visualize model graphs, and profile performance with TensorBoard - Google's ML visualization toolkit.
mlflow
Track ML experiments, manage model registry with versioning, deploy models to production, and reproduce experiments with MLflow - framework-agnostic ML lifecycle platform.
datachain-knowledge
Use whenever datasets, cloud storage buckets, or data pipelines are mentioned — creating, saving, querying, listing, exploring, deleting, or processing data in S3, GCS, Azure Blob, or local storage. Also use when running any script that may create datasets as a side effect. Maintains a knowledge base at dc-knowledge/…
prompt-scanner
A scanner for text sent to an AI agent, looking for prompt injection and jailbreak attempts. Prompt injection is text that tries to override an agent's instructions; a jailbreak tries to bypass its safety limits.
install-openviking-memory
Install and configure the OpenViking long-term memory plugin for OpenClaw via natural conversation. Once installed, the plugin automatically captures facts from chats and recalls relevant context before each reply (auto-capture + auto-recall, cross-session). Covers prerequisites, install through OpenClaw's plugin…