Physics-Informed Neural Networks in Julia
HTML-код
- Опубликовано: 16 июл 2024
- PINNs are an approach in deep learning to solve partial differential equations by minimizing residuum information. They require (higher-order) input-output derivatives for the MLP networks, which we will do manually in this video. Here is the code: github.com/Ceyron/machine-lea...
-------
👉 This educational series is supported by the world-leaders in integrating machine learning and artificial intelligence with simulation and scientific computing, Pasteur Labs and Institute for Simulation Intelligence. Check out simulation.science/ for more on their pursuit of 'Nobel-Turing' technologies (arxiv.org/abs/2112.03235 ), and for partnership or career opportunities.
-------
📝 : Check out the GitHub Repository of the channel, where I upload all the handwritten notes and source-code files (contributions are very welcome): github.com/Ceyron/machine-lea...
📢 : Follow me on LinkedIn or Twitter for updates on the channel and other cool Machine Learning & Simulation stuff: / felix-koehler and / felix_m_koehler
💸 : If you want to support my work on the channel, you can become a Patreon here: / mlsim
🪙: Or you can make a one-time donation via PayPal: www.paypal.com/paypalme/Felix...
-------
⚙️ My Gear:
(Below are affiliate links to Amazon. If you decide to purchase the product or something else on Amazon through this link, I earn a small commission.)
- 🎙️ Microphone: Blue Yeti: amzn.to/3NU7OAs
- ⌨️ Logitech TKL Mechanical Keyboard: amzn.to/3JhEtwp
- 🎨 Gaomon Drawing Tablet (similar to a WACOM Tablet, but cheaper, works flawlessly under Linux): amzn.to/37katmf
- 🔌 Laptop Charger: amzn.to/3ja0imP
- 💻 My Laptop (generally I like the Dell XPS series): amzn.to/38xrABL
- 📱 My Phone: Fairphone 4 (I love the sustainability and repairability aspect of it): amzn.to/3Jr4ZmV
If I had to purchase these items again, I would probably change the following:
- 🎙️ Rode NT: amzn.to/3NUIGtw
- 💻 Framework Laptop (I do not get a commission here, but I love the vision of Framework. It will definitely be my next Ultrabook): frame.work
As an Amazon Associate I earn from qualifying purchases.
-------
Timestamps:
00:00 Introduction
00:24 What is a PINN?
00:54 Interpretation of the Poisson problem
01:32 Informing neural network of the physics
03:14 Problem with automatic differentiation
04:15 Manual differentiation of a shallow MLP
07:29 Batched Execution of the neural network
08:36 Imports
08:59 Constants
09:59 Forcing Function & Analytical Solution
10:30 Setting the random seed
10:41 Sigmoid activation function
10:52 Initialize weights & bias of the neural network
13:51 Forward/Primal pass of the network
15:02 Plot initial prediction & analytical solution
18:31 Manual input-output differentiation
23:36 Check correctness with automatic differentiation
26:13 Randomly draw collocation points
28:30 Implement forward loss function
33:11 Testing the outer autodiff call
35:49 Training loop
38:34 Loss plot
39:09 Final PINN prediction
40:03 Summary
42:35 Outro