Guided tour
Studio Tour
Step by step through the Lab: the canvas, every block, and the script that comes out.
A guided tour of the Lab, from your first notebook to a PyTorch script you can run.
Each row below is one page. Read them in order, or jump to the one you need: how to start a notebook, how blocks and wires work, how to define the domain, the equation and the conditions, and how to generate, run and read the code.
Where a page shows the screen, the drawings are schematics of how the Lab is laid out. Boxes marked "Your screenshot" are the places for real screenshots.
Start here
What the Lab does, where your work is kept, and how to find your way around the studio.
- What the Studio is, and where your work lives You draw a problem as blocks and wires. The Studio checks it and writes the PyTorch script. You run the script on your own machine.
- Create a notebook Name it, choose a starting point, press one button. Starters are complete problems; an empty canvas is for when you know what you want.
- Find your way around the studio A palette on the left, a canvas in the middle, a settings panel on the right, and a plain-English check along the bottom.
Working on the canvas
Placing blocks, wiring them together, and changing their settings.
- Add, move and remove blocks Drag from the palette, drag to move, press Delete to remove. Plus the keyboard routes, the limits, and what a block's one-line summary tells you.
- Wire blocks together Every connector has a kind, and a wire is legal only between matching kinds. The result is that the Lab will not let you build a wiring the generator cannot use.
- Read and change a block's settings Select a block, edit its fields. Some fields appear only when others are set; formulas are written as maths, not code.
The blocks, one at a time
What each block asks, what the fields mean, and the mistakes to avoid.
- Define the domain The Domain block says where the problem lives, where its edges are, how many points to sample, and whether time is part of it.
- Complex geometries The Composite domain block builds a 2-D domain from rectangles and circles, each added or cut out in turn: a plate with a hole, an L-shape, a channel with a cylinder in it.
- Choose the equation Pick the type, pick the equation, set its coefficients. One thing to check twice: the Lab writes Poisson as the Laplacian of u equal to f, with no minus sign.
- Set the boundary and initial conditions One BC block per boundary, one IC block for the start. Without conditions the equation has many solutions and the network may find any of them.
- Build the network The Network block is the unknown function. Choose its depth, width and activation, optionally lift the inputs with Fourier features, and draw it to check.
- Balance the loss The Loss block collects the equation and every condition into one number, with a weight on each part. The weights are the first thing to change when a run does not behave.
- Choose the optimiser and set up the run The Optimiser block decides how the weights move; the Train block decides how the run is carried out. Between them they set the epochs, the learning rate, the seed and what gets saved.
- Ask for plots and a results table The Visualisation and Report blocks are optional. They tell the script what to draw and what to write down when training ends.
Getting the code out
Check the graph, generate the script, run it, and read what it contains.
- Check the graph and generate the code Two buttons turn the canvas into a Python file. This page covers what each one does, what the Graph check strip is telling you, and what happens the first time you press them.
- Run the script A generated script needs Python, PyTorch and, for the figures, Matplotlib. It runs from the command line or as a pasted Colab cell, and it writes its results next to itself.
- Read the script The generated file is long but it has the same nine parts every time, in the same order, each marked by a comment banner. Once you know the parts, you can find any setting you made on the canvas.
Put it together
Build a notebook from an empty canvas, change a ready-made one, and fix the problems the Lab reports.
- Build a notebook from an empty canvas Ten blocks, thirteen wires, one problem with a known answer. Build the 1D Poisson problem block by block, generate the script, run it, and check the result against the exact solution.
- Change a starter The quickest way to your own problem is to start from one that already works and change one thing at a time. We take Heat in a bar, change a number, then change a boundary condition.
- When the Graph check complains Every note the Graph check can show, in the words the Studio uses, with what it means and what to do. Notes are advice, not errors: the Studio still builds a script.
Guide videos
Short videos on what scientific machine learning is, how the Studio compares with coding by hand, and how to build your first notebook.