Skip to content
Back to skills

Deepxde

ASecurity

"Use DeepXDE for scientific machine learning, PINNs,

  • 247 stars
  • 0 votes
  • 0 copies
  • 3 views
  • Added September 8, 2026
datapythonbashapibackend

Works with

  • api

Security analysis

A96/100
  • mediumInstalls packages at runtime which could introduce malicious dependencies

Pro scans all 20 files and shows the line behind each finding

Scanned September 8, 2026

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

Installs into .claude/skills of the current project.

Are you the author of Deepxde?

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

Security grade badge for Deepxde
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/vectorspacelab-deepxde/badge)](https://www.skillsdirectory.com/skills/vectorspacelab-deepxde)

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

Download with Pro
SKILL.md
---
name: deepxde
description: "Use DeepXDE for scientific machine learning, PINNs,
  DeepONet/operator learning, backend selection, training, and troubleshooting."
disable-model-invocation: true
metadata:
  disco-role: operating
license: LGPL 2.1
---

# DeepXDE repo skill

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.

## Verified baseline

- Package/distribution: `DeepXDE`, import name `deepxde`.
- Python: package metadata requires Python `>=3.9`.
- Base package dependencies: `matplotlib`, `numpy`, `scikit-learn`, `scikit-optimize>=0.10.2`, and `scipy`.
- Tensor backend requirement: install at least one DeepXDE backend package before use.
- Runtime verified by this construction: **PyTorch backend on CPU** for import, simple PDE assembly, `FNN`, `Model.compile`, one-step `Model.train`, and `Model.predict`.
- Optional/alternative paths that require target-environment verification: TensorFlow 1.x compatibility, TensorFlow 2.x + TensorFlow Probability, JAX + Flax + Optax, PaddlePaddle, GPU, Horovod/MPI, and long training examples.

## Minimal installation and import check

For a CPU-safe DeepXDE setup, install DeepXDE plus PyTorch in an isolated Python environment, then select the backend **before** importing DeepXDE:

```bash
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.

## Route by task

| 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](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](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](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](sub-skills/operator-learning/SKILL.md) |

## Cross-cutting references and scripts

- [references/backend-and-installation.md](references/backend-and-installation.md) summarizes backend packages, selection order, and the verified/unverified backend boundary.
- [references/troubleshooting.md](references/troubleshooting.md) triages common install, backend, PDE, training, plotting, data-shape, and optional hardware failures and routes to the owning sub-skill.
- [references/repo-provenance.md](references/repo-provenance.md) records the source commit, package version, dirty-state baseline, and evidence paths used to generate this skill.
- [scripts/smoke_deepxde.py](scripts/smoke_deepxde.py) is a safe PyTorch CPU diagnostic that imports DeepXDE and can optionally run a tiny PDE training smoke.

Run the root smoke before adapting a task when the environment is uncertain:

```bash
python scripts/smoke_deepxde.py --backend pytorch --train-steps 1
python scripts/smoke_deepxde.py --backend pytorch --json
```

## Operating rules for future agents

1. Set `DDE_BACKEND` before importing any DeepXDE module. Backend selection happens during import.
2. Use backend-native tensor operations inside residuals and operators; use `dde.grad.jacobian` and `dde.grad.hessian` for derivatives.
3. Keep problem definition separate from training: assemble `geometry`/`icbc`/`data` in the PINN or operator sub-skill, then use `training-workflows` for `Model.compile`, `train`, callbacks, and checkpoints.
4. Do not assume every example supports every backend. Many examples document supported backends; this skill distills the common PyTorch CPU-safe path and marks other paths optional.
5. Do not run long examples, notebooks, benchmarks, GPU/Horovod jobs, or data-download workflows as smoke tests unless the user explicitly requests that cost and the required backend/data are available.
6. If the package commit, public APIs, backend dependencies, or example layout differ from [repo provenance](references/repo-provenance.md), refresh this skill before relying on stale guidance.

Files in this skill

  • SKILL.md5 KB
  • references/backend-and-installation.md4 KB
  • references/repo-provenance.md2.2 KB
  • references/repo-routing-metadata.json419 B
  • references/troubleshooting.md4.4 KB
  • scripts/smoke_deepxde.py6.1 KB
  • sub-skills/backend-and-configuration/SKILL.md2.9 KB
  • sub-skills/backend-and-configuration/references/backend-selection.md4.1 KB
  • sub-skills/backend-and-configuration/references/configuration.md6.8 KB
  • sub-skills/backend-and-configuration/references/troubleshooting.md6 KB
  • sub-skills/backend-and-configuration/scripts/check_backend.py14.6 KB
  • sub-skills/operator-learning/SKILL.md2.6 KB
  • sub-skills/operator-learning/references/api-reference.md6.9 KB
  • sub-skills/operator-learning/references/operator-workflows.md10.6 KB
  • sub-skills/operator-learning/references/troubleshooting.md6.3 KB
  • sub-skills/operator-learning/scripts/smoke_deeponet_aligned.py6 KB
  • sub-skills/pinn-problem-setup/SKILL.md2.9 KB
  • sub-skills/pinn-problem-setup/references/api-reference.md11.7 KB
  • sub-skills/pinn-problem-setup/references/pinn-workflows.md14.2 KB
  • sub-skills/pinn-problem-setup/references/troubleshooting.md9 KB

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.