Compute separated Helmholtz PINN residual and boundary losses so gradient imbalance can be diagnosed and corrected.
Scanned 9/9/2026
Install to Claude Code
npx -y skills add VectorSpaceLab/AREX-Skill --skill pinn_loss_decomposition --agent claude-codeInstalls into .claude/skills of the current project.
Are you the author of Pinn Loss Decomposition?
Add the live security badge to your README — it updates automatically with every re-scan.
[](https://www.skillsdirectory.com/skills/vectorspacelab-pinn-loss-decomposition)More formats (shields.io, HTML) on the badges page.
---
name: pinn_loss_decomposition
description: Compute separated Helmholtz PINN residual and boundary losses so gradient imbalance can be diagnosed and corrected.
---
# PINN Loss Decomposition
Use this skill when recovery needs separate PDE residual and boundary/data-fit loss terms. Do not collapse losses before gradient-statistic annealing.
## Inputs
- A trainable model with coordinate predictions.
- Interior collocation points and forcing values.
- Boundary points and exact boundary values.
- Helmholtz parameters and current lambda values.
## Outputs
- Residual loss.
- Boundary loss.
- Weighted total loss.
- Per-parameter gradients for residual and boundary losses when a compatible reduced model is used.
## Workflow
1. Predict the solution on interior and boundary samples.
2. Compute the Helmholtz residual or a reduced residual proxy for the selected model family.
3. Compute mean-squared residual and boundary errors separately.
4. Combine them with current lambda weights only after logging the individual terms.
## Validation
Run `python scripts/losses.py --self-test` or the skill tests.
Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.
No comments yet. Be the first to comment!
Practical guide to testing web applications with screen readers for comprehensive accessibility validation.
在编写新功能、修复错误或重构代码时使用此技能。强制执行测试驱动开发,包含单元测试、集成测试和端到端测试,覆盖率超过80%。
Go测试模式包括表格驱动测试、子测试、基准测试、模糊测试和测试覆盖率。遵循TDD方法论,采用地道的Go实践。
Django测试策略,包括pytest-django、TDD方法论、factory_boy、模拟、覆盖率以及测试Django REST Framework API。
克劳德代码会话的正式评估框架,实施评估驱动开发(EDD)原则