ode_TrainingIVP_soft
Functions which trains a model for solving a solveODE_IVP call with soft 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(de_points, inits, order, t0, 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 in executing training routine, and handles optimization of the network.
train_network_general_IVP(odes, inits, order, model, gamma, 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 and for inital values.
| Returns: |
|
|---|