Skip to content

Commit 9b0b3b7

Browse files
committed
fix doc
1 parent 9916ead commit 9b0b3b7

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

pina/solver/physics_informed_solver/pinn_interface.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
"""Module for the Physics-Informed Neural Network Interface."""
22

3-
from abc import ABCMeta, abstractmethod
3+
from abc import ABCMeta, abstractmethodg
44
import torch
55

66
from ..supervised_solver import SupervisedSolverInterface
@@ -119,11 +119,13 @@ def loss_data(self, input, target):
119119
Compute the data loss for the PINN solver by evaluating the loss
120120
between the network's output and the true solution. This method should
121121
be overridden by the derived class.
122+
122123
:param LabelTensor input: The input to the neural network.
123124
:param LabelTensor target: The target to compare with the
124125
network's output.
125126
:return: The supervised loss, averaged over the number of observations.
126127
:rtype: LabelTensor
128+
:raises NotImplementedError: If the method is not implemented.
127129
"""
128130
raise NotImplementedError(
129131
"PINN is being used in a supervised learning context, but the "

0 commit comments

Comments
 (0)