← Learn
Unit 4

Neural network basics

This unit builds a neural network from its parts and trains it on the aircraft’s runs in PyTorch. It ends with one script that trains a field model and reports it against the POD + GP baseline of Unit 3, whose fitting and testing it assumes.

Outcome: Train and validate a small network end to end.

Start the unit
  1. 4.1Neurons, layers and MLPsA neural network is a flexible regression model built from simple layers.
  2. 4.2Loss, gradients and autogradTraining lowers the loss by small steps against its gradient; backpropagation gives the slope for every weight at once.
  3. 4.3Normalising and the training loopEvery quantity on a similar scale, with statistics from the training set only; then batch, forward, loss, backward, step, with a validation loss each epoch.
  4. 4.4Overfitting and regularisationLearning curves, and methods that keep a network from memorising its training runs.
  5. 4.5A first field surrogateA network that takes a point and a design and returns the field value at that point.
  6. 4.6Testing on unseen designsSurrogate against solver on designs the network never saw, inside and outside the training range.
  7. 4.7A first surrogate, end to endOne script: real solver runs, a split by design, normalisation, training, testing and a report.

Build: Train the project’s neural field on the aircraft runs, then change one thing at a time (width, Fourier features, POD modes, a split by point) and compare each with the POD + GP baseline.

Read: Neural networks ↗, Learn the basics ↗, Fourier Features Let Networks Learn High Frequency Functions in Low Dimensional Domains ↗