pde_TrainingBCP_periodic
Functions which trains a model for solving a solvePDE_xy call with periodic boundaries 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_xy()
PINNtrain(pde_points, setup_boundaries, epochs, eqn, N_pde, model, extra_ders)
Main function called by PINNtrainSelect_xy when solving equation in xy with periodic boundaries.
| Parameters: |
|
|---|
| Returns: |
|
|---|
Packages data correctly and calls trainStep in executing training routine, and handles optimization of the network.
trainStep(pdes, model, 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: |
|
|---|