Tutorial (#91)

* tutorial update
This commit is contained in:
Dario Coscia
2023-05-08 16:19:59 +02:00
committed by GitHub
parent 2382ef55cd
commit 9de4e515f4
15 changed files with 244 additions and 528 deletions

View File

@@ -136,8 +136,8 @@ Equation (1) and try to write the PINA model class:
# Conditions to hold
conditions = {
'x0': Condition(Span({'x': 0.}), initial_condition),
'D': Condition(Span({'x': [0, 1]}), ode_equation),
'x0': Condition(location=Span({'x': 0.}), function=initial_condition),
'D': Condition(location=Span({'x': [0, 1]}), function=ode_equation),
}
# defining true solution
@@ -263,6 +263,7 @@ the results.
[epoch 03000] 4.049759e-04 2.937766e-06 4.020381e-04
After the training we have saved the final loss in ``final_loss``, which
we can inspect. By default PINA uses mean square error loss.