인터페이스는 현지화되어 있으며, Skill 소개와 설명 문서는 선택한 언어로 AI가 자동 번역합니다. 코드·명령어·경로·전문 용어는 원문을 유지하며 원작자 문서가 우선합니다.
Skills 둘러보기
생산성 및 협업 · SKILL.md

deep_ritz_residual_trial_network

deep_ritz_residual_trial_network

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

Independent GitHub snapshot · Automated classification · Original documentation governs

Skill 문서

GitHub

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:

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.

저장한 Skills