committed by
GitHub
parent
6a4febb33a
commit
78ed2a67a2
12
tutorials/tutorial13/tutorial.ipynb
vendored
12
tutorials/tutorial13/tutorial.ipynb
vendored
@@ -5,6 +5,9 @@
|
||||
"metadata": {},
|
||||
"source": [
|
||||
"# Tutorial: Multiscale PDE learning with Fourier Feature Network\n",
|
||||
"\n",
|
||||
"[](https://colab.research.google.com/github/mathLab/PINA/blob/master/tutorials/tutorial13/tutorial.ipynb)\n",
|
||||
"\n",
|
||||
"This tutorial presents how to solve with Physics-Informed Neural Networks (PINNs)\n",
|
||||
"a PDE characterized by multiscale behaviour, as\n",
|
||||
"presented in [*On the eigenvector bias of Fourier feature networks: From regression to solving\n",
|
||||
@@ -20,6 +23,15 @@
|
||||
"metadata": {},
|
||||
"outputs": [],
|
||||
"source": [
|
||||
"## routine needed to run the notebook on Google Colab\n",
|
||||
"try:\n",
|
||||
" import google.colab\n",
|
||||
" IN_COLAB = True\n",
|
||||
"except:\n",
|
||||
" IN_COLAB = False\n",
|
||||
"if IN_COLAB:\n",
|
||||
" !pip install \"pina-mathlab\"\n",
|
||||
"\n",
|
||||
"import torch\n",
|
||||
"\n",
|
||||
"from pina import Condition, Plotter, Trainer, Plotter\n",
|
||||
|
||||
12
tutorials/tutorial13/tutorial.py
vendored
12
tutorials/tutorial13/tutorial.py
vendored
@@ -2,6 +2,9 @@
|
||||
# coding: utf-8
|
||||
|
||||
# # Tutorial: Multiscale PDE learning with Fourier Feature Network
|
||||
#
|
||||
# [](https://colab.research.google.com/github/mathLab/PINA/blob/master/tutorials/tutorial13/tutorial.ipynb)
|
||||
#
|
||||
# This tutorial presents how to solve with Physics-Informed Neural Networks (PINNs)
|
||||
# a PDE characterized by multiscale behaviour, as
|
||||
# presented in [*On the eigenvector bias of Fourier feature networks: From regression to solving
|
||||
@@ -13,6 +16,15 @@
|
||||
# In[1]:
|
||||
|
||||
|
||||
## routine needed to run the notebook on Google Colab
|
||||
try:
|
||||
import google.colab
|
||||
IN_COLAB = True
|
||||
except:
|
||||
IN_COLAB = False
|
||||
if IN_COLAB:
|
||||
get_ipython().system('pip install "pina-mathlab"')
|
||||
|
||||
import torch
|
||||
|
||||
from pina import Condition, Plotter, Trainer, Plotter
|
||||
|
||||
Reference in New Issue
Block a user