/cs:dl-diagnose — Diagnose a training run against Chapter 11's decision tree: read training error before deciding anything, and never diagnose a NaN as overfitt
复制下面这句话,粘贴给 Claude Code、Codex、Cursor 等 AI 编程工具,它会读取安装说明并在你确认后完成安装。
请阅读 https://ai.atlankj.com/install/asset/gh-claude-skills-fe8467f7f380 ,按照其中的说明把「cs-dl-diagnose」安装到你(当前 AI 工具)中。执行前先告诉我将运行的命令和写入的位置,等我确认。
查看 AI 将读取的安装说明正在读取 GitHub 原文…
内容来自 GitHub 原始文件,由原作者维护。在 GitHub 查看
Command: /cs:dl-diagnose [symptoms]
Chapter 11's rule, which most teams have backwards: read training error first. High training error means the model or the optimizer is the bottleneck, and more data cannot help.
python3 engineering/deep-learning-book/skills/deep-learning-book/scripts/training_diagnostics.py \
--train-loss <x> --val-loss <y> --target-loss <z> --grad-norm <g> \
--tiny-subset-fits yes|no|unknown
Exit 4 means not enough instruments — ask for one of the named measurements rather than
guessing.python3 .../capacity_planner.py --params <n> --train-examples <m> \
--train-error <x> --val-error <y> --applied early-stopping
model_arithmetic.py --spec <file> — it reports
parameters, FLOPs and activation memory per example, and refuses a stack whose shapes do not
connect.skills/deep-learning-book/references/book_to_2026_delta.md.