界面已本地化;技能介绍与说明文档按所选语言由 AI 自动翻译,代码、命令、路径和专业术语保留原文,以原作者文档为准。
探索技能
效率与协作 · SKILL.md

optimization-workflows

optimization-workflows

【效率与协作】Route users who need flatten/unflatten helpers, structured optimizers, fixed-point differentiation helpers, and SciPy minimize integration using value_and_grad.

独立 GitHub 快照 · 自动分类 · 以原作者文档为准

技能说明

GitHub

name: optimization-workflows description: "Route users who need flatten/unflatten helpers, structured optimizers, fixed-point differentiation helpers, and SciPy minimize integration using value_and_grad." disable-model-invocation: true metadata: disco-role: operating license: MIT

Optimization Workflows

Use this sub-skill for optimization tasks built from nested parameter trees, fixed-point recurrences, or SciPy minimization loops.

Route here when the user needs

  • flatten or flatten_func to turn nested dict/list/tuple parameter trees into flat arrays and back.
  • Structured optimizers such as sgd, rmsprop, or adam on nested containers.
  • fixed_point for differentiable iterative updates.
  • scipy.optimize.minimize combined with value_and_grad.

Route elsewhere when the question is really about

Bundled runtime helpers

  • scripts/structured_optimizer_smoke.py
  • scripts/rosenbrock_minimize.py
  • scripts/fixed_point_smoke.py

These scripts use tiny synthetic fixtures only; they do not download data and there is no CLI entry point to discover.

What this sub-skill does not own

  • Ordinary differentiation operators and higher-order autodiff semantics.
  • Custom primitive registration or gradient-rule authoring.
  • General NumPy/SciPy wrapper troubleshooting outside optimization workflows.
我的收藏