Skip to content

Commit 64bf7bd

Browse files
committed
fix doc
1 parent 9916ead commit 64bf7bd

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

pina/solver/physics_informed_solver/pinn_interface.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -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)