export tutorials changed in dd88513 (#559)

Co-authored-by: dario-coscia <dario-coscia@users.noreply.github.com>
This commit is contained in:
github-actions[bot]
2025-04-23 18:48:47 +02:00
committed by Dario Coscia
parent 228f807d92
commit d10c525e74
53 changed files with 65690 additions and 2320 deletions

View File

@@ -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]}\")"
]
},
{