export tutorials changed in dd88513 (#559)
Co-authored-by: dario-coscia <dario-coscia@users.noreply.github.com>
This commit is contained in:
committed by
Dario Coscia
parent
228f807d92
commit
d10c525e74
11
tutorials/tutorial20/tutorial.ipynb
vendored
11
tutorials/tutorial20/tutorial.ipynb
vendored
@@ -28,12 +28,13 @@
|
||||
"source": [
|
||||
"## routine needed to run the notebook on Google Colab\n",
|
||||
"try:\n",
|
||||
" import google.colab\n",
|
||||
" IN_COLAB = True\n",
|
||||
" import google.colab\n",
|
||||
"\n",
|
||||
" IN_COLAB = True\n",
|
||||
"except:\n",
|
||||
" IN_COLAB = False\n",
|
||||
" IN_COLAB = False\n",
|
||||
"if IN_COLAB:\n",
|
||||
" !pip install \"pina-mathlab[tutorial]\"\n",
|
||||
" !pip install \"pina-mathlab[tutorial]\"\n",
|
||||
"\n",
|
||||
"import torch\n",
|
||||
"import warnings\n",
|
||||
@@ -271,7 +272,7 @@
|
||||
" test_size=0.2,\n",
|
||||
" batch_size=256,\n",
|
||||
" accelerator=\"cpu\",\n",
|
||||
" enable_model_summary=False\n",
|
||||
" enable_model_summary=False,\n",
|
||||
")\n",
|
||||
"trainer.train()\n",
|
||||
"_ = trainer.test()"
|
||||
|
||||
Reference in New Issue
Block a user