Model Recommendation
模型自动推荐 —— 根据数据特征和预测需求,智能推荐线性回归/逻辑回归/SVM/神经网络/Softmax 回归。 当用户提到"推荐模型"、"选什么模型"、"用什么算法"、"模型选择"、"该用哪个"、 "帮我选模型"、"哪个算法合适"、"用什么方法预测"、"线性回归还是"等类似场景时触发。 适用于任何"我有数据和预测目标,但不确定该用什么模型"的需求。 不要手动画决策树——必须调用此技能来统一处理。
Install
npx skills add muralidharsoth-tech/andrew-ng-ml-claude-skills --skill model-recommendationgit clone --depth 1 https://github.com/muralidharsoth-tech/andrew-ng-ml-claude-skills.git /tmp/andrew-ng-ml-claude-skills
mkdir -p ~/.claude/skills
cp -r /tmp/andrew-ng-ml-claude-skills/skills/model-recommendation ~/.claude/skills/model-recommendationPersonal skills live in ~/.claude/skills. Use .claude/skills in a project folder to share a skill with your team.
From the SKILL.md
# 模型自动推荐(Model Recommendation)
## 概述
此技能根据用户提供的数据特征和预测需求,自动推荐最合适的监督学习模型。
覆盖的模型:
| 模型 | 适用场景 |
|------|---------|
| 📏 线性回归 | 预测连续数值,关系大致线性 |
| 🎯 逻辑回归 | 二分类,需要概率和可解释性 |
| ⚔️ SVM | 二分类,样本少/特征多,追求干净边界 |
| 🧠 神经网络 | 回归或分类,数据海量、关系复杂 |
| 📊 Softmax 回归 | 多分类,数据不大、关系简单 |
| 🧠+📊 神经网络 + softmax | 多分类,数据海量、关系复杂 |
## 核心决策逻辑
```
你要预测的 Y 是什么类型?
│
├── 连续数值(房价、温度、销量……)
│ ├─ 关系简单/线性 → 线性回归
│ └─ 关系复杂/非线性 → 神经网络(回归模式)
│
├── 二分类:是/否(会不会违约、是不是垃圾邮件……)
│ ├─ 需要概率 + 可解释 → 逻辑回归
│ ├─ 不要概率 + 样本少/特征多 → SVM
│ └─ 数据海量 + 关系复杂 → 神经网络
│
└── 多分类:K 个类别(K≥3,猫/狗/鸟……)
├─ 数据少 + 关系简单 → Softmax 回归
├─ 样本少 + 特征多 → SVM(One-vs-One)
└─ 数据海量 + 关系复杂 → 神经网络 + softmax
```
## 交互流程
严格按以下 5 步执行,不要跳过任何一步:
### Step 0:先确认输入是否足够
在推荐模型前,必须确认以下信息;缺失时先提问,不要根据模糊描述直接选择算法:
1. 任务类型:连续预测、二分类、多分类、异常检测还是推荐?
2. 目标变量或评分信号:目标列叫什么,取值示例是什么?
3. 数据规模:样本行数、特征数量、类别数量(如适用)。
4. 数据形态:CSV 路径或 3-5 行样例;是否存在缺失值、文本字段或类别不平衡?
5. 业务约束:是否需要概率、可解释性或低延迟?
如果用户只能提供自然语言描述,先用以下模板引导:
```text
我想解决:
数据位置/样例:
目标列或评分列:
样本量和特征数:
缺失值/文本字段/类别不平衡:
是否需要概率或可解释性:
```
信息仍不足时,输出“暂不能可靠推荐”的原因,并给出需要补充的最少字段;不要把猜测写成确定结论。
---
### Step 1:确认预测目标(Y 的类型)
向用户提问:
> 你要预测的 **Y(目标变量)** 是什么类型的?
>
> - **A. 连续数值** —— 比如房价、温度、销量、分数……
> - **B. 二分类(是/否)** —— 比如会不会违约、是不是垃圾邮件、有没有病……
> - **C. 多分类(3 类及以上)** —— 比如识别图片是猫/狗/鸟、判断水果是苹果/橘子/榴莲……
根据用户回答,确定后续路线。
---
### Step 2:收集数据和场景信息
根据 Y 的类型,针对性提问。以下问题**必须逐条问到**:
#### 所有路线必问:
1. **数据量级**:大约有多少条训练样本?
- A. 几百条及以下 B. 几千条 C. 几万条 D. 几十万条以上Details
- Skill name
model-recommendation- Path
skills/model-recommendation/SKILL.md- License
- MIT
- Repo updated
- 25 October 2026
FAQ
What does the Model Recommendation skill do?
模型自动推荐 —— 根据数据特征和预测需求,智能推荐线性回归/逻辑回归/SVM/神经网络/Softmax 回归。 当用户提到"推荐模型"、"选什么模型"、"用什么算法"、"模型选择"、"该用哪个"、 "帮我选模型"、"哪个算法合适"、"用什么方法预测"、"线性回归还是"等类似场景时触发。 适用于任何"我有数据和预测目标,但不确定该用什么模型"的需求。 不要手动画决策树——必须调用此技能来统一处理。
How do I install the Model Recommendation skill?
skills CLI (Claude Code, Cursor, Codex and more): npx skills add muralidharsoth-tech/andrew-ng-ml-claude-skills --skill model-recommendation. Skills go in ~/.claude/skills (personal) or .claude/skills (project), and Claude loads them automatically when a task matches the description.
Is Model Recommendation popular?
It lives in muralidharsoth-tech/andrew-ng-ml-claude-skills, which has 40 GitHub stars and 3 forks.
Related skills
Anomaly Detection
40muralidharsoth-tech/andrew-ng-ml-claude-skills
异常检测(Anomaly Detection)—— 基于高斯分布的一元/多元异常检测,纯 NumPy 实现。 当用户提到"异常检测"、"anomaly detection"、"找异常"、"离群点"、"异常值检测"、 "outlier detection"、"高斯异常检测"、"检测异常数据"、"帮我检测异常"、"异常样本"、 "找出异常的"、"哪些数据有问题"、"不正常的数据"、"反常数据"等类似场景时触发。 适用于任何"给一堆数据,想找出哪些样本不太正常"的需求。 不要手动写代码——必须调用此技能来统一处理。
Linear Regression
40muralidharsoth-tech/andrew-ng-ml-claude-skills
线性回归预测 —— 智能选择正规方程或梯度下降,支持单变量与多变量。 当用户提到"线性回归"、"线性拟合"、"线性预测"、"直线拟合"、"回归预测"、 "帮我做回归"、"预测一下"、"拟合一条线"、"多变量回归"等类似场景时触发。 适用于任何"给一堆 x,y 数据,想拟合并预测新值"的需求。 不要手动写代码——必须调用此技能来统一处理。
Logistic Regression
40muralidharsoth-tech/andrew-ng-ml-claude-skills
逻辑回归分类预测 —— 支持二分类与多分类,内置正则化梯度下降。 当用户提到"逻辑回归"、"logistic regression"、"分类预测"、"二分类"、 "多分类"、"帮我分类"、"预测类别"、"是否"、"会不会"等类似场景时触发。 适用于任何"给一堆 x,y 分类标签,想预测新样本类别"的需求。 不要手动写代码——必须调用此技能来统一处理。
Privilege Sentinel
43bstevescherer/heycounsel-community
Pre-flight privilege and work-product check for legal AI prompts. Use when the user is about to send legal content to a third-party AI surface (ChatGPT, Claude.ai, Copilot, Gemini, etc.) and wants to know whether the prompt risks blowing attorney-client privilege or work-product protection. Returns a SAFE/CAUTION/STOP band with cited factors, a discovery-impact line, and a redacted-safe rewrite.
Chinese Grandpa
44Jakeschincariol/unhinged-claude-skills
Compresses long, repeated sub-agent instructions by translating them into Mandarin (more meaning per character) to slash the token bill, then dispatches the compressed brief to a fleet of sub-agents while preserving original intent; invoke via /chinese-grandpa when you are about to fan out the same heavy instructions to many sub-agents and the cost is climbing.
Redneck Engineer
44Jakeschincariol/unhinged-claude-skills
Turns a vague idea into a clear build plan — short PRD, task list, user flows, constraints, and acceptance criteria — so Claude Code knows exactly what to build; invoke via /redneck-engineer when you know what you want but Claude keeps building the wrong thing.
Browse the most popular Claude skills, all ai, llms & agents skills, or write your own with the skills generator.