invpinnTrainSteps

Training steps for training inverse PINNs.

trainStep(eqns, clps, bcs, data, network, boundary, constraint, constants)

Main training step for purely spatial problems.

Parameters:
  • eqns (list) –

    List of equations pinn trains to solve.

  • clps (tensor) –

    Sampled collocation points which have been processed for training.

  • bcs (tensor) –

    Sampled boundary points which have been processed for training.

  • data (tensor) –

    Sampled data points which is provided to learn constants.

  • network (model) –

    TensorFlow pinn to train.

  • constraint (string) –

    Soft or Hard constraining network.

  • boundary (boundaries) –

    Boundary in which model is trained over.

  • constants (list) –

    List of string constants which will be trained.

Returns Collocation point loss, boundary point loss, and gradients to optimize

trainStepTime(eqns, clps, bcs, ics, data, network, boundary, t_orders, constraint, constants)

Main training step for spatio-temporal problems.

Parameters:
  • eqns (list) –

    List of equations pinn trains to solve.

  • clps (tensor) –

    Sampled collocation points which have been processed for training.

  • bcs (tensor) –

    Sampled boundary points which have been processed for training.

  • ics (tensor) –

    Sampled initial points which have been processed for training.

  • data (tensor) –

    Sampled data points which is provided to learn constants.

  • network (model) –

    TensorFlow pinn to train.

  • boundary (boundaries) –

    Boundary in which model is trained over.

  • t_orders (list) –

    List of orders of time of each equation training on.

  • constraint (string) –

    Soft or Hard constraining network.

  • constants (list) –

    List of string constants which will be trained.

Returns Collocation point loss, boundary point loss, initial point loss, and gradients to optimize