Skip to content
Back to skills

Pinn Residual Objective

ASecurity

Compute PINN data, boundary, and PDE residual losses for reduced failure-mode experiments.

  • 247 stars
  • 0 votes
  • 0 copies
  • 2 views
  • Added September 9, 2026
testingpython

Security analysis

A100/100

Scanned September 9, 2026

npx -y skills add VectorSpaceLab/AREX-Skill --skill pinn_residual_objective --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Pinn Residual Objective?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Pinn Residual Objective
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/vectorspacelab-pinn-residual-objective/badge)](https://www.skillsdirectory.com/skills/vectorspacelab-pinn-residual-objective)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

SKILL.md
---
name: pinn_residual_objective
description: Compute PINN data, boundary, and PDE residual losses for reduced failure-mode experiments.
---

# PINN Residual Objective

Use this skill when a recovery harness must exercise the paper's soft PDE-constraint mechanism. Do not replace it with plain supervised error; the residual term is the central object being tested.

## Inputs
- A benchmark object from `periodic_pde_benchmark`.
- A parametric prediction surrogate or model interface.
- PDE coefficient values and residual weight.

## Outputs
- Loss decomposition containing initial-condition, periodic-boundary, residual, and total losses.
- Residual metadata identifying the coefficient used for the PDE operator.

## Workflow
1. Evaluate initial-condition fit against benchmark targets.
2. Evaluate periodic boundary consistency at paired boundary points.
3. Compute convection residual `u_t + beta*u_x` for the chosen surrogate.
4. Combine losses as `initial + boundary + residual_weight * residual`.
5. Return the full decomposition for diagnostics and training traces.

## Validation
Run `python scripts/objective.py <benchmark.json> --speed 1 --beta 30` after creating a benchmark JSON, then run the tests in `tests/`.

## Limitations
The included deterministic script supports analytic sinusoidal convection surrogates. Larger neural PINN implementations should preserve the same loss-field names and residual semantics.

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

Comments

Loading comments…