The PINNStudio workflow¶
This page gives an overview of a complete PINNStudio session, from an empty window to a trained model that you can plot again, export and compare with other runs. Each step names the pages of the model tree (the left column of the window) where it happens and links to the pages that describe it in detail. The First run page goes through the same steps once with a shipped example.
The steps, in the order in which a problem is usually set up:
- Start from an example or a new problem
- Define the problem
- Choose the network and the collocation points
- Set up the training
- Solve and follow the run
- Read the results
- Plot, export and save
- Come back later: restore and compare
You do not have to go through the steps strictly in order: every page can be changed at any time before Solve, and settings that would stop a run are marked on their tree entries as you work.
1. Start from an example or a new problem¶
The Start tab offers new 1D, 2D, 3D and ODE problems, Open a saved problem..., and the shipped examples. The Examples lists in the toolbar load an example as a forward or inverse problem, with its Default or Tuned settings. Starting from an example that is close to your problem is often quicker than starting from an empty one.
See First run and The interface.
2. Define the problem¶
- Problem: the dimension (ODE, 1D, 2D, 3D), time-dependent or stationary, forward or inverse (Problem).
- Equations: the outputs, the equations written as residuals equal to zero, and named constants (Equations, outputs and constants).
- Geometry: the spatial domain and the time interval (Geometry and domain).
- Initial conditions and Boundary conditions: each output's initial value, and one row per boundary condition (Initial conditions, Boundary conditions).
- Inverse problem (shown only for an inverse problem): the unknown parameters and the measured data they are fitted to (Inverse problems and measured data).
Check the problem before training: the Geometry view shows the domain and which part of the boundary each condition selects, and the Script tab below the graphics shows the script your settings produce.
3. Choose the network and the collocation points¶
- Neural network: the size, the activation, the network type (for example an FNN or a multi-scale Fourier-feature network) and optional input and output transforms (Neural network).
- Collocation points: how many training points are sampled in the domain, on the boundary and at the initial time, and how (Collocation points).
4. Set up the training¶
- Training: the Training phases (by default Adam followed by L-BFGS), the precision, optional initial-condition pre-training and the training callbacks (Training phases).
- Loss weights: one weight per loss term, and the automatic weighting methods, per-point weights and causal training (Loss weights).
- Adaptive training: time-adaptive training (time windows) or residual-based adaptive refinement (RAR) (Adaptive training).
Which of these methods to try depends on the problem; a plain run is the usual starting point. See Choosing a training strategy.
5. Solve and follow the run¶
Solve checks the settings, writes the training script and runs it as a separate process; if a setting cannot be used, nothing starts and the Training Log says why. While it trains, the Live loss tab draws the loss, the status bar shows the phase, the iteration and the time, and the Training Log shows what the script prints. Stop ends the run.
See Solve and the training log.
6. Read the results¶
When the run ends, the Results tab of the graphics area shows the loss and the solution in Overview, the errors against reference data in Error analysis, and every saved run in History. The error is only computed when Error Analysis is set up (with the Error Analysis button on the Results page, from reference files or an exact formula); most examples set it up when they are loaded. A small loss alone does not show that the solution is accurate, so compare with a reference whenever you can.
See Results and plots, Error Analysis and Scope and limitations.
7. Plot, export and save¶
On the Results page, Outputs to plot:, Plot type: and Plot settings decide which figures are
saved and how they look, and Export Solution writes the trained solution as text files after a forward
run. Export script in the toolbar writes a standalone DeepXDE script for the current settings, which runs
without PINNStudio. Save stores the problem itself as a .pinn.json file.
See Results and plots, Exporting a script and Save, reopen and export.
8. Come back later: restore and compare¶
Each run is saved in its own folder inside the Save to folder. Restore & visualize (under Results in the tree) loads a trained model from such a folder and plots it again, with another plot type or output, without retraining. Parameter sweep runs the problem several times over a range of settings (or as a Bayesian search) and saves every run, so that settings and training methods can be compared by their error; Compare in the History tab plots several runs together.
See Restore & visualize and Parameter sweeps.

