pde_TrainingDeepONetBCP_hard
Functions which trains a model for solving a solvePDE_DeepONet_xy call with dirichlet boundaries and hard constraints, and periodic boundaries with both soft and hard constraints (as there is no difference), 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_DeepONet_xy()
train(pde_points, u_sensors, epochs, model, eqn, N_bc, extra_ders)
Main function called by PINNtrainSelect_DeepONet_xy when solving equation in xy with hard constraints or periodic boundaries (as those equations function the same, no learning of any boundary conditions).
| Parameters: |
|
|---|
| Returns: |
|
|---|
Packages data correctly and calls train_network in executing training routine.
train_network(pdes, uIn, opt, model, equation, 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. Also handles optimization of the network.
| Returns: |
|
|---|