pihnn.utils.PIHNNloss#
- pihnn.utils.PIHNNloss(boundary, model, t)#
Evaluation of the loss function as Mean squared error (MSE).
- Parameters:
boundary (
pihnn.geometries.boundary
) – Domain boundary, needed to extract training and test points.model (
pihnn.nn.PIHNN
/pihnn.nn.DD_PIHNN
) – Neural network model.t (str) – Option for ‘training’ or ‘test’.
- Returns:
loss (float) - Computed loss.