pde_TrainingICBCP_hard
Functions which trains a model for solving a solvePDE_tx call with hard constraints implemented in TensorFlow.
While available to user, not meant to be used. Meant to be used through object returned from solvePDE calls, where training file is selected through pde_trainingSelects.PINNtrainSelect_tx()
PINNtrain(pde_points, init_points, t_order, setup_boundaries, epochs, eqn, N_pde, N_iv, model, extra_ders, adapt)
Main function called by PINNtrainSelect_tx when solving equation in tx with hard constraint.
| Parameters: |
|
|---|
| Returns: |
|
|---|
Packages data correctly and calls trainStep in executing training routine, and handles optimization of the network.
trainStep(pdes, model, t_order, eqnparam, extra_ders)
Function which does the training for a single epoch
| Parameters: |
|
|---|
Generates derivatives of model using automatic differentiation. Computes mean squared error of loss along pdes points.
| Returns: |
|
|---|