
Explore solving ordinary differential equations with pens, inverse pens, and a deep neural operator, including physics-informed networks for a damped harmonic oscillator and a learnable parameter.
Install Anaconda on Windows, download and install the package, then use pip install or conda install to add libraries like Pillow, Beautiful Soup, and scikit-learn, and run Jupyter Notebook.
Install PyTorch for Python on Windows, Linux, or Mac, with CPU or GPU, selecting the correct CUDA version, choosing conda or pip, and following the CUDA toolkit setup.
Explore how deep learning uses artificial neural networks with weights and biases, activation functions like ReLU and sigmoid, and loss-driven training optimized by gradient descent and backpropagation.
Explore PyTorch tensors, from scalars to high-dimensional arrays, learn to create tensors, perform basic operations, index elements, and reshape with view for deep learning.
Explore how to convert PyTorch tensors to NumPy arrays and back, move tensors between CPU and GPU with cuda devices, and leverage NumPy for deep learning workflows.
apply backpropagation theory to train deep neural networks by adjusting weights and biases through forward and backward passes, using loss and the chain rule to minimize mean square error.
Apply backpropagation in PyTorch to a simple forward pass with x and y, computing y_hat, s, and loss, then run loss.backward to obtain W's gradient of -2.
Learn how PINNs, or physics-informed neural networks, solve ordinary differential equations. Train with boundary and initial conditions, physics losses, domain points, and a standard optimizer to enforce the governing equation.
Derive the damped harmonic oscillator's governing equation from Newton's law, classify regimes by zeta, and compare its exact solution with a PINN-based time-to-position model.
Solve the harmonic and damped oscillator equations using the exact solution, with initial conditions and a 0–1 time span in 300 steps, to compare with pins results.
Define and implement a one-input, one-output feed-forward neural network in PyTorch to map time to position, configuring a single hidden layer with tanh activation and a forward pass.
Set up training with the Adam optimizer at 1e-3 learning rate, define boundary and physics losses from initial conditions and domain points, and iterate with zero_grad, loss, backward, and step.
Balance three losses in the model: initial condition for X at time zero, velocity DU/DT, and the physics loss from the equation, by tuning lambda1 and lambda2.
Learn how to evaluate results of physics-informed neural networks by plotting training progress against the exact solution, comparing the network solution, and assessing losses, training steps, and inference speed.
Change the loss function from absolute to squared to accelerate training and demonstrate how different loss definitions, aligned with physics, affect convergence in neural network solutions of differential equations.
The lecture shows that hidden layers increase parameters and slow training, while a layer converges faster; it covers tuning loss, optimizer type, learning rate, and iterations in PINNs for ODEs.
Demonstrates solving a differential equation with a pins network inside torch through a forward feed neural net, enforcing initial conditions, and training with physics loss to match the exact solution.
Explore inverse pins for solving a damped harmonic oscillator, estimating the unknown mu from data by adapting a pins network and comparing with standard pins.
Create data for inverse pinns by sampling the exact solution, generate 40 observations with torch, and use these samples to predict mu in an undamped pendulum.
We define the IPINNS network, identical to pins, add a trainable mu parameter, and train the model with physics loss at t-physics points, boundary data, and observation data.
Apply the Adam optimizer to train pins and the mu parameter while keeping W and K fixed. Combine physics loss with observation loss, backpropagate, and update mu values during training.
Demonstrate training a pins network to fit observed points, using plots every 5,000 steps, detaching gradients, and restarting memory to improve accuracy.
Train, plot, and visualize the mu parameter to obtain a final value of 4, framing it as an inverse problem to fit data and recover mu.
Train a deep neural operator to perform numerical integration from data, generating Gaussian curves and their integrals. Create 110 curves of 100 points and map inputs U to outputs S.
Preprocess data for deep onets by reshaping the full u sequence and a single x location to feed branch and trunk nets, producing 11,000 data points.
Convert raw data into tensors and patches with a 32-patch size, split into train/test, and implement PyTorch data loaders and datasets to prepare inputs for the model.
Define a mean squared error loss and set up an optimizer to train a neural network, then run a 2000-step training loop with back propagation and progress monitoring.
Observe how a deep neural operator learns to integrate a cosine function as the analytic solution guides evaluation, demonstrating loss convergence and close agreement with the 1/5 sin(5x) result.
Description
This is a complete course that will prepare you to solve Ordinary Differential Equations (ODEs) using Physics-Informed Neural Networks (PINNs), Inverse Physics-Informed Neural Networks (Inv-PINNs), and Deep Neural Operator (DNO) We will cover the fundamentals of Solving Ordinary Differential Equations (ODEs) and how to prepare these equations for solving them using PINNs, Inv-PINNs, and DNO.
What skills will you Learn:
In this course, you will learn the following skills:
Understand the General Math behind Ordinary Differential Equations (ODEs) .
Write and build Algorithms from scratch to sole the Ordinary Differential Equations using Traditional methods.
Understand the Math behind PINNs, Inv-PINNs, and DNO.
Write and build Machine Learning Algorithms to solve PINNs, Inv-PINNs, and DNO using Pytorch.
Postprocess the results.
Compare the results acquired from traditional methods and PINNs related tech.
Use opensource libraries.
We will cover:
Pytoch Basics.
Apply Solving ODEs Analytical solutions using Python.
Solving ODEs Using PINNs for the Damped Harmonic Oscillator.
Acquire an important related parameter Using Inverse-PINNs for the Damped Harmonic Oscillator.
Predicting an output curve Using Deep Neural Operator (DNO).
If you do not have prior experience in Machine Learning or Computational Engineering, that's no problem. This course is complete and concise, covering the fundamentals of Machine Learning/ Ordinary Differential Equations (ODEs) / Physics-Informed Neural Networks (PINNs)/ Inverse Physics-Informed Neural Networks (Inv-PINNs)/ and Deep Neural Operator (DNO).
Let's enjoy Learning PINNs together...