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
10
tutorials/tutorial15/tutorial.ipynb
vendored
10
tutorials/tutorial15/tutorial.ipynb
vendored
@@ -259,7 +259,7 @@
|
||||
" problem=problem,\n",
|
||||
" model=GNN(in_features=11, out_features=19),\n",
|
||||
" use_lt=False,\n",
|
||||
" loss=torch.nn.L1Loss()\n",
|
||||
" loss=torch.nn.L1Loss(),\n",
|
||||
")\n",
|
||||
"trainer = Trainer(\n",
|
||||
" solver,\n",
|
||||
@@ -314,7 +314,7 @@
|
||||
}
|
||||
],
|
||||
"source": [
|
||||
"_=trainer.test()"
|
||||
"_ = trainer.test()"
|
||||
]
|
||||
},
|
||||
{
|
||||
@@ -348,7 +348,9 @@
|
||||
"print(\"Here the dataset\")\n",
|
||||
"print(f\"Dataset keys: {test_dataset.keys()}\")\n",
|
||||
"print(f\"Dataset keys for data condition: {test_dataset['data'].keys()}\")\n",
|
||||
"print(f\"Dataset values type for data condition: {[v.__class__.__name__ for v in test_dataset['data'].values()]}\")\n",
|
||||
"print(\n",
|
||||
" f\"Dataset values type for data condition: {[v.__class__.__name__ for v in test_dataset['data'].values()]}\"\n",
|
||||
")\n",
|
||||
"\n",
|
||||
"# extract input and target for test dataset\n",
|
||||
"input_test = test_dataset[\"data\"][\"input\"]\n",
|
||||
@@ -378,7 +380,7 @@
|
||||
"source": [
|
||||
"# get the prediction\n",
|
||||
"prediction_test = solver(input_test)\n",
|
||||
"print(f'Number of prediction properties: {prediction_test.shape[-1]}')"
|
||||
"print(f\"Number of prediction properties: {prediction_test.shape[-1]}\")"
|
||||
]
|
||||
},
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user