技能创建器
skill-creator
创建、改进和评估自定义技能,把专业流程转化为可重复使用的 AI 能力。
pinn-problem-setup【数据与研究】Assemble DeepXDE forward and inverse PINN problems with geometry, residuals, conditions, data classes, and sampling.
独立 GitHub 快照 · 自动分类 · 以原作者文档为准
Use this sub-skill when a task needs the DeepXDE objects that define a physics-informed problem: geometry, time domain, PDE residual callbacks, boundary/initial/point-set constraints, inverse variables, and dde.data.PDE-family data objects. It is the setup layer before model compile/train/predict.
../backend-and-configuration/SKILL.md.../training-workflows/SKILL.md.../operator-learning/SKILL.md.dde.geometry.Interval, Rectangle, Disk, Cuboid, Hypercube, Hypersphere, polygonal/point-cloud geometries, CSG (|, -, &), and GeometryXTime as appropriate.def pde(x, y): ... (or def pde(x, y, int_mat): ... for IDE/FPDE). Use backend tensor operations inside the residual and DeepXDE gradients (dde.grad.jacobian, dde.grad.hessian).dde.icbc.* classes or exact constraints with net.apply_output_transform.dde.data.PDE, TimePDE, IDE, or FPDE, including num_domain, num_boundary, num_initial, train_distribution, anchors, exclusions, and num_test deliberately.dde.Variable unknowns, use them inside the residual, and pass them to Model.compile(..., external_trainable_variables=...) in the training workflow.Run the bundled tiny PyTorch CPU-safe Poisson smoke when you need to check that basic problem assembly, compile, one or two training iterations, prediction, and residual prediction work:
python scripts/smoke_poisson_1d.py --help
python scripts/smoke_poisson_1d.py --iterations 2
The bundled smoke runs only with the PyTorch backend and sets DDE_BACKEND=pytorch for the run. This construction verified PyTorch CPU for the basic PDE path; TensorFlow, JAX, Paddle, GPU, Horovod, and backend-limited IDE/FPDE examples are optional alternatives and must be verified before relying on them.