executing-plans
executing-plans
Use when executing an implementation plan in the current session as the implementer yourself — your human partner chose inline execution, or no subagent tool is available
deepxdeUse DeepXDE for scientific machine learning, PINNs, DeepONet/operator learning, backend selection, training, and troubleshooting.
Independent GitHub snapshot · Automated classification · Original documentation governs
Use this skill when a task involves DeepXDE, physics-informed neural networks (PINNs), scientific machine learning for ODE/PDE/IDE/FPDE problems, DeepONet/operator learning, or DeepXDE backend/training troubleshooting.
This skill is self-contained for future use: it distills the package source, docs, examples, and verified PyTorch CPU inspection into bundled routes, references, and smoke scripts. It does not require the original repository checkout.
DeepXDE, import name deepxde.>=3.9.matplotlib, numpy, scikit-learn, scikit-optimize>=0.10.2, and scipy.FNN, Model.compile, one-step Model.train, and Model.predict.For a CPU-safe DeepXDE setup, install DeepXDE plus PyTorch in an isolated Python environment, then select the backend before importing DeepXDE:
python -m pip install deepxde torch
DDE_BACKEND=pytorch python - <<'PY'
import deepxde as dde
print(dde.__version__)
print(dde.backend.backend_name)
PY
Use package-manager-appropriate PyTorch wheels for CPU, CUDA, ROCm, or MPS in the target environment. Do not treat a CPU import as proof of GPU or Horovod correctness.
| If the user asks to... | Read |
|---|---|
install DeepXDE, choose DDE_BACKEND, debug missing TensorFlow/JAX/Paddle/PyTorch packages, check GPU visibility, set dtype/autodiff/random seed/XLA/parallel scaling | sub-skills/backend-and-configuration/SKILL.md |
| build a forward or inverse PINN for an ODE/PDE/IDE/FPDE, define geometry, BC/IC/point-set constraints, residuals, gradients, hard constraints, or adaptive points | sub-skills/pinn-problem-setup/SKILL.md |
compile/train a dde.Model, choose optimizers, callbacks, metrics, save/restore, predict residuals/outputs, fit functions/tabular data, or use multifidelity data | sub-skills/training-workflows/SKILL.md |
| build DeepONet, POD-DeepONet, MIONet, PI-DeepONet, Cartesian-product operator data, function spaces, ZCS, or troubleshoot branch/trunk/data-shape errors | sub-skills/operator-learning/SKILL.md |
Run the root smoke before adapting a task when the environment is uncertain:
python scripts/smoke_deepxde.py --backend pytorch --train-steps 1
python scripts/smoke_deepxde.py --backend pytorch --json
DDE_BACKEND before importing any DeepXDE module. Backend selection happens during import.dde.grad.jacobian and dde.grad.hessian for derivatives.geometry/icbc/data in the PINN or operator sub-skill, then use training-workflows for Model.compile, train, callbacks, and checkpoints.