wenmin-wu/ds-skills/multiclass-to-binary-collapse
Claude Code and agent skill by wenmin-wu/ds-skills
- community
Checking that the SKILL.md file is still in the repository.
Trains on a finer-grained multiclass target (subtypes), then collapses non-baseline classes into a single positive class for binary submission.
Install
npx vskill@latest install wenmin-wu/ds-skills/multiclass-to-binary-collapseSKILL.md
Multiclass-to-Binary Collapse
Overview
When auxiliary labels provide finer-grained categories than the competition's binary target (e.g., disease subtypes A/B/C/D vs healthy/sick), training on the multiclass target gives the model more signal to learn decision boundaries. At prediction time, sum the probabilities of all non-baseline classes to get the binary positive probability. This typically improves binary classification by 0.5-2% because the model learns distinct patterns per subtype instead of lumping them together.
Quick Start
Workflow
- Map auxiliary labels to a multiclass target (subtypes)
- Train classifier on the multiclass target
- Predict multiclass probabilities
- Sum all non-baseline class probabilities for the positive class
- Submit binary probabilities
Key Decisions
- Baseline class: Must be index 0 in
model.classes_— verify alignment - Oversampling: Use the multiclass target for stratified oversampling (preserves subtype balance)
- CV stratification: Stratify folds by the multiclass target, not the binary
- When to use: Only when subtypes have genuinely different feature patterns
References
Security
- Security scanPassed, 100 of 100Pattern checks on the skill's files.
- Model reviewNot runA model review is scheduled for the next rescan.
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckingskills/tabular/multiclass-to-binary-collapse/SKILL.md
Popularity
- 7-day trend score
- 5
Not refreshed yet.
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Cursor
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/wenmin-wu/ds-skills/multiclass-to-binary-collapse)