This repository contains the implementation and results of training a Fourier Neural Operator (FNO) to approximate solutions of the 1D wave equation. Two training approaches are evaluated:
- One-to-one training: Predicts ( u(t=1) ) from ( u(0) ), achieving lower errors.
- All-to-all training: Learns multiple future steps but fails to generalize well.
The 1D wave equation is defined as:
with boundary conditions:
FNOs approximate the solution operator using Fourier transforms:
The error metric used is the relative ( L_2 ) error:
-
One-to-one training: Achieved 9.34% relative
$L_2$ error on in-distribution data. - All-to-all training: Struggled to learn wave dynamics, showing high errors.
For more details, refer to the project report.