Skip to content

Commit 1b8e4f4

Browse files
MatteB03ndem0
authored andcommitted
Update tutorial 1,3,4,9 plots
1 parent eb14534 commit 1b8e4f4

File tree

7 files changed

+121481
-352
lines changed

7 files changed

+121481
-352
lines changed

tutorials/tutorial1/tutorial.ipynb

Lines changed: 21064 additions & 53 deletions
Large diffs are not rendered by default.

tutorials/tutorial1/tutorial.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@
3838
#
3939
# ```python
4040
# from pina.problem import SpatialProblem
41-
# from pina.geometry import CartesianProblem
41+
# from pina.domain import CartesianProblem
4242
#
4343
# class SimpleODE(SpatialProblem):
4444
#
@@ -233,7 +233,6 @@ def truth_solution(self, pts):
233233

234234
# inspecting final loss
235235
trainer.logged_metrics
236-
print(type(problem.truth_solution))
237236

238237

239238
# By using `matplotlib` we can also do some qualitative plots of the solution.
@@ -260,7 +259,6 @@ def truth_solution(self, pts):
260259
idx for idx, s in enumerate(trainer.callbacks)
261260
if isinstance(s, MetricTracker)
262261
]
263-
print(list_[0])
264262
trainer_metrics = trainer.callbacks[list_[0]].metrics
265263

266264
loss = trainer_metrics['val_loss']

0 commit comments

Comments
 (0)