Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
33 changes: 16 additions & 17 deletions tutorials/tutorial10/tutorial.ipynb

Large diffs are not rendered by default.

246 changes: 34 additions & 212 deletions tutorials/tutorial4/tutorial.ipynb

Large diffs are not rendered by default.

22 changes: 9 additions & 13 deletions tutorials/tutorial5/tutorial.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -196,14 +196,10 @@
],
"source": [
"class NeuralOperatorSolver(AbstractProblem):\n",
" input_variables = k_train.labels[3]['dof']\n",
" output_variables = u_train.labels[3]['dof']\n",
" domains = {\n",
" 'pts': k_train\n",
" }\n",
" conditions = {'data' : Condition(domain='pts', #not among allowed pairs!!!\n",
" output_points=u_train)}\n",
"\n",
" input_variables = k_train.full_labels[3]['dof']\n",
" output_variables = u_train.full_labels[3]['dof']\n",
" conditions = {'data' : Condition(input=k_train, \n",
" target=u_train)}\n",
"# make problem\n",
"problem = NeuralOperatorSolver()"
]
Expand Down Expand Up @@ -298,8 +294,8 @@
"name": "stdout",
"output_type": "stream",
"text": [
"Final error training 56.05%\n",
"Final error testing 55.95%\n"
"Final error training 55.97%\n",
"Final error testing 55.82%\n"
]
}
],
Expand Down Expand Up @@ -412,8 +408,8 @@
"name": "stdout",
"output_type": "stream",
"text": [
"Final error training 7.48%\n",
"Final error testing 7.73%\n"
"Final error training 9.43%\n",
"Final error testing 9.40%\n"
]
}
],
Expand Down Expand Up @@ -462,7 +458,7 @@
"name": "python",
"nbconvert_exporter": "python",
"pygments_lexer": "ipython3",
"version": "3.12.3"
"version": "3.12.7"
}
},
"nbformat": 4,
Expand Down
2 changes: 1 addition & 1 deletion tutorials/tutorial7/tutorial.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -203,7 +203,7 @@
" 'phys_cond': Condition(domain=CartesianDomain({'x': [x_min, x_max], 'y': [y_min, y_max]\n",
" }),\n",
" equation=Equation(laplace_equation)),\n",
" 'data': Condition(input_points=data_input.extract(['x', 'y']), output_points=data_output)\n",
" 'data': Condition(input=data_input.extract(['x', 'y']), target=data_output)\n",
" }\n",
"\n",
"problem = Poisson()"
Expand Down
4 changes: 2 additions & 2 deletions tutorials/tutorial8/tutorial.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -157,7 +157,7 @@
},
{
"cell_type": "code",
"execution_count": 4,
"execution_count": null,
"id": "55cef553-7495-401d-9d17-1acff8ec5953",
"metadata": {},
"outputs": [],
Expand All @@ -167,7 +167,7 @@
" parameter_domain = CartesianDomain({'mu': [0, 100]})\n",
"\n",
" conditions = {\n",
" 'io': Condition(input_points=p_train, output_points=u_train)\n",
" 'io': Condition(input=p_train, target=u_train)\n",
" }\n",
"\n",
"poisson_problem = SnapshotProblem()"
Expand Down
Loading