pde_TrainingDeepONetICBCP_dirichlet_soft
Functions which trains a model for solving a solvePDE_DeepONet_tx call with dirichlet boundaries and soft constraint 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_tx()
train(pde_points, inits, u_sensors, setup_boundaries, t_order, epochs, model, eqn, N_iv, extra_ders)
Main function called by PINNtrainSelect_DeepONet_tx when solving equation in tx with dirichlet boundaries with soft constraint.
| Parameters: |
|
|---|
| Returns: |
|
|---|
Packages data correctly and calls train_network in executing training routine.
train_network(pdes, inits, uIn, bcs, t_order, opt, model, equation, N_iv, 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, inital values, and boundary values. Also handles optimization of the network.
| Returns: |
|
|---|