ode_TrainingIVP_Hard
Functions which trains a model for solving a solveODE_IVP call with hard constraints implemented in TensorFlow.
While available to user, not meant to be used. Meant to be used through object returned from solveODE calls, where training file is selected through ode_trainingSelect
PINNtrain_IVP_Hard(de_points, inits, order, t, epochs, eqn, net_layers, net_units, model)
Main function called by PINNtrainSelect_Standard when solving soft constraint IVP.
| Parameters: |
|
|---|
| Returns: |
|
|---|
Packages data correctly and calls train_network_general_IVP_Hard in executing training routine, and handles optimization of the network.
train_network_IVP_Hard(odes, model, eqnparam)
Function which does the training for a single epoch
| Parameters: |
|
|---|
Generates derivatives of model using automatic differentiation. Computes mean squared error of loss along odes points.
| Returns: |
|
|---|