neural-networks
Explains ML Glossary neural-network concepts, forward and backpropagation, activations, layers, losses, optimizers, regularization, and architecture examples.
- License 许可
- MIT
- 最近更新
- 2026-09-03
- Stars
- ★ 351
- Forks
- 27
01 前言 Front Matter
- name
- neural-networks
- license
- MIT
- metadata
- { "disco-role": "operating" }
- description
- Explains ML Glossary neural-network concepts, forward and backpropagation, activations, layers, losses, optimizers, regularization, and architecture examples.
- disable-model-invocation
- true
02 资源文件 4
- 参考文档references/architecture-guide.md6.7 KB
- 参考文档references/topic-map.md9.1 KB
- 参考文档references/troubleshooting.md4.1 KB
- 脚本scripts/activation_loss_demo.py2.6 KB
03 SKILL.md 正文
Neural Networks
Use this sub-skill for ML Glossary tasks about neural-network concepts, training mechanics, activations/losses/optimizers, layers, regularization, and architecture examples such as autoencoders, CNNs, GANs, MLPs, RNNs, GRUs, LSTMs, and VAEs.
Read when
- The user asks how neural networks make predictions or learn.
- The task mentions neurons, synapses, weights, bias, layers, weighted inputs, forwardpropagation, backpropagation, chain rule through layers, activation functions, loss functions, optimizers, gradient accumulation, dropout, batch normalization, convolution, pooling, recurrent units, autoencoders, CNNs, GANs, MLPs, RNNs, or VAEs.
- A documentation task needs the correct beginner wording for neural-network pages or architecture entries.
- The user asks whether legacy PyTorch/NumPy source snippets should be run, modernized, or treated as illustrative.
Main references
references/topic-map.mdcontains the self-contained neural-network concept map, activation/loss/optimizer summaries, layer notes, training flow, and regularization map.references/architecture-guide.mdcontains the repo-grounded architecture summaries and code-snippet caveats for autoencoder, CNN, GAN, MLP, RNN, and VAE examples.references/troubleshooting.mdcovers conceptual mistakes, legacy source limitations, optional dependency issues, and docs-maintenance guidance.scripts/activation_loss_demo.pyis a safe pure-Python toy script for activation and loss calculations.
Fast routing
| Task | Use |
|---|---|
| Explain neuron/weights/bias/layers/weighted input | topic-map.md core concepts. |
| Explain forwardpropagation with matrices | topic-map.md forwardpropagation section and basics/math matrix cross-link. |
| Explain backpropagation | topic-map.md backpropagation section and basics/math chain-rule cross-link. |
| Compare ReLU, sigmoid, tanh, softmax, ELU, LeakyReLU | topic-map.md activation table and activation_loss_demo.py. |
| Compare MSE, cross-entropy, hinge, Huber, KL, MAE/RMSE | topic-map.md loss table; route formula-heavy basics to ../basics-and-math/SKILL.md. |
| Explain optimizers or learning-rate adaptation | topic-map.md optimizer section. |
| Explain regularization: dropout, early stopping, L1/L2, augmentation, noise, ensembling | topic-map.md regularization section. |
| Compare neural architectures | architecture-guide.md. |
| Triage old PyTorch examples | troubleshooting.md and architecture-guide.md caveats. |
Workflow for answers
- Start with the computation graph: weighted input → activation → prediction → loss → gradient/backprop → optimizer update.
- Link neural math back to foundations when necessary: dot products and matrix dimensions from
../basics-and-math/SKILL.md. - Use examples at toy scale. The source repository was educational; do not imply full production training scripts.
- For architecture comparisons, state input type, key layers/components, typical use, and source caveat.
- If code is requested, use the bundled activation/loss demo or write a short self-contained snippet. Avoid requiring PyTorch unless the user explicitly asks for modern external code.
- For documentation edits, preserve the beginner-first style and keep long code/training details outside glossary prose.
Boundaries
This sub-skill owns:
- Neural-network teaching content and architecture summaries.
- Activation, layer, optimizer, regularization, and training-mechanics concepts.
- Caveats about original neural code snippets.
Route elsewhere:
- Calculus, linear algebra, gradient descent basics, logistic-regression log-loss derivations →
../basics-and-math/SKILL.md. - KNN, decision trees, SVM, random forests, boosting, regression variants, RL tabular methods →
../classical-algorithms/SKILL.md. - Datasets/libraries/papers/courses for neural learning →
../../references/resources-catalog.md. - Sphinx authoring/build issues →
../../references/site-maintenance.mdand root troubleshooting.
Quality checks
- Distinguish conceptual snippets from runnable training code.
- Warn that some original architecture examples required PyTorch/torchvision, datasets, and training loops and were not selected as runtime checks.
- Do not say dropout is used at inference without explaining scaling/training-vs-test behavior.
- Do not confuse activation functions with loss functions or optimizers.
- For softmax, state that outputs form a probability distribution over mutually exclusive classes.
04 同仓库更多 Skills
passnet-triton-opt
Make a single PassNet Triton kernel fast AND numerically faithful: performance model (when a replacement can win at all), block/grid/warp tuning, autotune policy, launch overhead, and per-op numeric recipes to pass the dtype baseline tolerances. Use when a pass matches and is correct but speedup below expected, or when correctness fails by small numeric margins.
passnet-solve
END-TO-END playbook for solving one PassNet sample: analyze the computation graphs, decide the optimization strategy (what to fuse, what to replace, what to leave alone), drive the iteration loop, and maximize the sample score. This is the ENTRY skill — invoke it first for any PassNet optimization task; it tells you when to use passnet-pattern-fusion, passnet-triton-opt and passnet-feedback.
passnet-skill
PassNet GPU kernel optimization via compiler passes. Design and implement Triton-based optimization passes, create pass files under ./pass_dir/, self-evaluate with pass_evaluator, and iterate to maximize GPU speedup.
passnet-pattern-fusion
Author PassNet pass files: write patterns that actually MATCH the FX graph, pick fusion regions (which ops to absorb into one Triton kernel), and structure multi-pass submissions with the mandatory shared-dispatch architecture. Use when creating or fixing pattern()/replacement_args()/replacement_func() files, when a pass "failed to match", or when deciding how to fuse multiple kernels/ops.
passnet-orchestrate
Round/batch planning and decision support for PassNet graph optimization. Use for multi-sample triage, worker allocation, eval-budget policy, and post-eval keep/revert decisions. For solving one concrete sample end to end, use passnet-solve as the entry skill; consult this skill only when you need broader planning or a specific decision gate.
passnet-feedback
Fast, deterministic feedback for PassNet work: pre-flight pattern/match verification WITHOUT burning a GPU evaluation, per-node bottleneck analysis of a sample's graphs, and eval-log parsing into per-variant status + estimated score + failure classification. Use BEFORE every GPU evaluation (check_pattern), at the START of a sample (analyze_graph), and AFTER every evaluation (parse_eval_log).