Skip to content
Back to skills

Deep Ritz Residual Trial Network

ASecurity

Build smooth residual trial networks for Deep Ritz variational PDE objectives.

  • 247 stars
  • 0 votes
  • 0 copies
  • 3 views
  • Added September 9, 2026
toolspythonbash

Security analysis

A100/100

Scanned September 9, 2026

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

Installs into .claude/skills of the current project.

Are you the author of Deep Ritz Residual Trial Network?

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

Security grade badge for Deep Ritz Residual Trial Network
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/vectorspacelab-deep-ritz-residual-trial-network/badge)](https://www.skillsdirectory.com/skills/vectorspacelab-deep-ritz-residual-trial-network)

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

SKILL.md
---
name: deep_ritz_residual_trial_network
description: Build smooth residual trial networks for Deep Ritz variational PDE objectives.
---

# Deep Ritz Residual Trial Network

## When To Use

Use this skill when a variational PDE solver needs a scalar neural trial function `u(x; theta)` whose spatial gradients can be differentiated. Do not use it for mesh-only PDE discretizations.

## Inputs

- Spatial dimension.
- Hidden width and residual block count.
- Activation choice, preferably cubic ReLU for Poisson-style Deep Ritz losses.
- Coordinate batch with gradient tracking enabled when a loss needs `grad_x u`.

## Outputs

- A trainable scalar model.
- Forward values shaped `[batch, 1]`.
- Input-gradient compatibility for energy losses.

## Workflow

1. Project coordinates into hidden width.
2. Apply residual blocks with two affine transformations and smooth activation.
3. Apply a final linear readout.
4. Keep the model independent of any original implementation repository.

## Validation

Run:

```bash
python tests/test_residual_network.py
```

## Limitations

The helper uses PyTorch when available. If PyTorch is unavailable, tests still validate architecture metadata and deterministic parameter counting, but recovery should record that full autograd training is blocked.

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…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.