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

failure_mode_diagnostics

failure_mode_diagnostics

【效率与协作】Diagnose PINN failure-mode recovery runs with relative errors and optimizer progress checks.

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

技能说明

GitHub

name: failure_mode_diagnostics description: Diagnose PINN failure-mode recovery runs with relative errors and optimizer progress checks.

Failure Mode Diagnostics

Use this skill when comparing PINN predictions or reduced proxy outputs to a target field. It is especially useful for deciding whether a run shows high-error soft-constraint failure or improvement from a proposed remedy.

Inputs

  • Prediction and target arrays with matching shapes.
  • Optional loss traces from vanilla or curriculum optimization.
  • Relative-error thresholds for reduced recovery acceptance.

Outputs

  • Relative L2 error and absolute L2 error.
  • Boolean flags for high relative error, finite loss trace, and loss improvement.
  • A concise text summary for recovery and analysis reports.

Workflow

  1. Flatten prediction and target arrays while preserving numeric values.
  2. Compute relative L2 error using a guarded target norm.
  3. Compute root-mean-square absolute L2 error.
  4. Check whether recorded losses are finite and improve.
  5. Report metrics without claiming full reproduction unless the recovery target says so.

Validation

Run the tests in tests/; they check exact, shifted, and constant predictions.

Limitations

These diagnostics do not explain every loss-landscape property from the paper. They provide bounded executable evidence for recovery gating and refinement decisions.

我的收藏