Skip to content
Back to skills

Training Workflows

ASecurity

"Guide DeepXDE model lifecycle, optimizers, callbacks, prediction,

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

Security analysis

A100/100

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

Scanned September 8, 2026

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

Installs into .claude/skills of the current project.

Are you the author of Training Workflows?

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

Security grade badge for Training Workflows
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/vectorspacelab-training-workflows-arex-skill/badge)](https://www.skillsdirectory.com/skills/vectorspacelab-training-workflows-arex-skill)

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: training-workflows
description: "Guide DeepXDE model lifecycle, optimizers, callbacks, prediction,
  checkpoints, plotting, function fitting, tabular data, and multifidelity
  training workflows."
disable-model-invocation: true
metadata:
  disco-role: operating
license: LGPL 2.1
---

# DeepXDE Training Workflows

Use this sub-skill after the user already has compatible DeepXDE `data` and `net` objects and needs to train, checkpoint, resume, predict, or diagnose a `dde.Model` workflow. This construction verified PyTorch CPU behavior; TensorFlow, JAX, Paddle, GPU, and Horovod behavior should be treated as optional or backend-specific unless separately verified.

## Route first

- PDE residuals, geometry, boundary/initial conditions, inverse-variable setup, and adaptive sampling point design: [../pinn-problem-setup/SKILL.md](../pinn-problem-setup/SKILL.md).
- Backend installation, backend selection, dtype, autodiff, seed, XLA, GPU, Horovod, or parallel setup: [../backend-and-configuration/SKILL.md](../backend-and-configuration/SKILL.md).
- DeepONet/MIONet/PDEOperator data shapes and operator-network construction: [../operator-learning/SKILL.md](../operator-learning/SKILL.md).

## Read these bundled references

- [references/model-lifecycle.md](references/model-lifecycle.md): concrete `Model(data, net)` lifecycle, `compile`, `train`, optimizers, callbacks, predict, save/restore, metrics, and plotting.
- [references/data-and-function-workflows.md](references/data-and-function-workflows.md): `Function`, `DataSet`, `MfFunc`, and `MfDataSet` data contracts and shape checks.
- [references/troubleshooting.md](references/troubleshooting.md): optimizer/backend/plot/checkpoint/convergence failure triage.

## Safe smoke check

Run the bundled function-approximation smoke when you need to confirm the training loop and PyTorch CPU backend before adapting a larger problem:

```bash
python scripts/smoke_function_approximation.py --iterations 3 --num-train 8 --num-test 16
```

The script sets `DDE_BACKEND=pytorch` before importing DeepXDE unless the environment already sets a backend, uses a tiny `dde.data.Function` + `dde.nn.FNN`, performs no plotting, writes only to a caller-selected output directory when requested, and prints a JSON summary.

## Minimal lifecycle pattern

```python
import deepxde as dde

model = dde.Model(data, net)
model.compile("adam", lr=1e-3, metrics=["l2 relative error"])
losshistory, train_state = model.train(iterations=1000, display_every=100)
y_pred = model.predict(x_eval)
```

Keep the `data` and `net` compatible with the selected backend. For PDE and TimePDE training, do not use `batch_size`; resample PDE or boundary points with `dde.callbacks.PDEPointResampler` instead. For ordinary function, tabular, multifidelity, and operator datasets, follow the data-specific batching rules in the references.

Files in this skill

  • SKILL.md2.8 KB
  • references/data-and-function-workflows.md7.5 KB
  • references/model-lifecycle.md11.3 KB
  • references/troubleshooting.md6.4 KB
  • scripts/smoke_function_approximation.py5.1 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.