model-comparison
Skill0 starsChanged 5 months agoMITView on GitHub
Compare two or more regression model reports from any skill in the regression pack. Produces a ModelComparisonReport with Akaike weights, likelihood-ratio tests for nested pairs, a coefficient comparison chart, and a structured verdict. 1. Ingest — loads each report.json, sniffs the model family (linear, logistic, ridge, lasso, elasticnet), and derives a ModelEntry with AIC, BIC, n, k, and primary fit quality (adj-R² for linear family, pseudo-R² for logistic). 2. Nesting detection — for each pair of same-family, same-outcome models, checks…
3 other projects use a version of this.
Adopted by
Most recently taken up by
- Red-empty-potato/ai-agent-skillstheir own version, first seen Aug 29, 2026
- gmanch94/claude-code-aidlc-templatetheir own version, first seen Jul 11, 2026
- GLWen/skillstheir own version, first seen Feb 3, 2026
Other versions3 projects use a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 3
- GLWen/skills★ 2same name
- gmanch94/claude-code-aidlc-template★ 2same name
- Red-empty-potato/ai-agent-skills★ 0same name
How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.
In this repository5 other files it gives its agents.
- diagnosticsSkill
- linear-regressionSkill
- logistic-regressionSkill
- pre-analysisSkill
- regularized-regressionSkill
The file
We split this skill into the rules it gives an agent
1 rule. About 0 are common, 1 is distinctive, and 0 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈1
Distinctive · estimate
This author's own choices. Worth a look.
0
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 45
Only computed for models with valid AIC values.
≈ “Common” is an estimate: at least 1 in 5 of the 350,495 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
model-comparison skill
Compare two or more regression model reports from any skill in the regression pack.
Produces a ModelComparisonReport with Akaike weights, likelihood-ratio tests for
nested pairs, a coefficient comparison chart, and a structured verdict.
Usage
python .agents/skills/model-comparison/scripts/compare.py \
--reports out/ols/report.json out/ridge/report.json out/lasso/report.json \
--names "OLS" "Ridge" "Lasso" \
--output out/comparison/ \
[--alpha 0.05] \
[--dataset-name "tips"]Required arguments
| Argument | Description |
--reports | Space-separated paths to report.json files (≥ 2) |
--names | Human-readable model names (same order as --reports) |
--output | Output directory for report.json and report.html |
Optional arguments
| Argument | Default | Description |
--alpha | 0.05 | Significance level for LR tests |
--dataset-name | "" | Label shown in the report header |
What the skill does
- Ingest — loads each report.json, sniffs the model family (linear, logistic,
ridge, lasso, elasticnet), and derives a
ModelEntrywith AIC, BIC, n, k, and primary fit quality (adj-R² for linear family, pseudo-R² for logistic). - Nesting detection — for each pair of same-family, same-outcome models, checks whether one's feature set is a strict subset of the other's.
- LR test — for each nested pair:
LR = 2*(ll_full − ll_nested) ~ chi²(df). - Akaike weights —
Δ_i = AIC_i − min(AIC),w_i = exp(−Δ_i/2) / Σ exp(−Δ_j/2). Only computed for models with valid AIC values. - Verdict — one of:
clear_winner— one model has Akaike weight ≥ 0.80 or LR test rejects simpler modelscompetitive_tie— max Δ AIC < 2complementary_strengths— different families or targets; primary metrics closeall_inadequate— all primary metrics below 0.15
- Report — HTML with verdict card, models table, Akaike weight bars, Δ AIC bars, LR test table, coefficient comparison chart, and flags.
Output schema
ModelComparisonReport
├── models: list[ModelEntry]
├── lr_tests: list[LRTestResult]
├── akaike_weights: AkaikeWeights | None
├── verdict: ComparisonVerdict
│ ├── overall: "clear_winner" | "competitive_tie" | "complementary_strengths" | "all_inadequate"
│ ├── recommended_model: str | None
│ ├── headline: str
│ └── rationale: str
├── flags: list[Flag]
│ ├── SAMPLE_SIZE_MISMATCH — models trained on different n
│ ├── CROSS_FAMILY_COMPARISON — families differ; AIC not valid
│ └── NO_FORMAL_COMPARISON — neither Akaike weights nor LR tests available
└── recommendations: list[Recommendation]Comparison validity rules
| Scenario | Akaike weights | LR test |
| Same family, same outcome, different features | ✓ | ✓ (nested pairs) |
| OLS vs OLS+HC3 (same features) | ✓ (equal weight) | — |
| OLS vs OLS(log-target) | ✗ | ✗ |
| Linear vs logistic | ✗ | ✗ |
| Any vs Ridge/Lasso (same outcome) | ✓ (approx) | ✗ |
References
- Model selection criteria
- Akaike weights
- Cross-family comparison
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

