ode_TrainingBVP_Hard
Functions which trains a model for solving a solveODE_BVP 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_BVP_Hard(de_points, inits, order, t_bdry, epochs, eqn, net_layers, net_units, model)
Main function called by PINNtrainSelect_Standard when solving hard constraint BVP.
| Parameters: |
|
|---|
| Returns: |
|
|---|
Packages data correctly and calls train_network_general_BVP_Hard in executing training routine, and handles optimization of the network.
train_network_BVP_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: |
|
|---|