ode_Training2SystemIVP_soft
Functions which trains a model for solving a solveODE_System_IVP call with 2 equations and 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_2System_IVP(de_points, inits, order, t0, epochs, eqn, net_layers, net_units, model)
Main function called by PINNtrainSelect_Standard when solving system of 2 equations with soft constraint IVP.
| Parameters: |
|
|---|
| Returns: |
|
|---|
Packages data correctly and calls train_network_2system_IVP in executing training routine, and handles optimization of the network.
train_network_2system_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: |
|
|---|