Colab tutorials (#367)

* Colab Button & Run added
This commit is contained in:
Giuseppe Alessio D'Inverno
2024-10-22 15:47:33 +02:00
committed by GitHub
parent 6a4febb33a
commit 78ed2a67a2
39 changed files with 526 additions and 52 deletions

View File

@@ -6,6 +6,8 @@
"source": [
"# Tutorial: Averaging Neural Operator for solving Kuramoto Sivashinsky equation\n",
"\n",
"[![Open In Colab](https://colab.research.google.com/assets/colab-badge.svg)](https://colab.research.google.com/github/mathLab/PINA/blob/master/tutorials/tutorial10/tutorial.ipynb)\n",
"\n",
"In this tutorial we will build a Neural Operator using the\n",
"`AveragingNeuralOperator` model and the `SupervisedSolver`. At the end of the\n",
"tutorial you will be able to train a Neural Operator for learning\n",
@@ -21,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",
"import matplotlib.pyplot as plt\n",
"from scipy import io\n",