Skip to content

Commit 5784aef

Browse files
committed
update doc
1 parent b6f4452 commit 5784aef

File tree

1 file changed

+10
-6
lines changed

1 file changed

+10
-6
lines changed

pina/loss/ntk_weighting.py

Lines changed: 10 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -8,22 +8,26 @@
88

99
class NeuralTangentKernelWeighting(WeightingInterface):
1010
"""
11-
A neural tangent kernel scheme for weighting different losses to
11+
A neural tangent kernel scheme for weighting different losses to
1212
boost the convergence.
1313
1414
.. seealso::
1515
16-
**Original reference**: Jacot, Gabriel, Hongler, *ANeural Tangent
17-
Kernel: Convergence and Generalization in Neural Networks*.
18-
arXiv preprint arXiv:1806.07572 (2018).
19-
DOI: `arXiv:1806.07572 <https://arxiv.org/abs/1806.07572>`_.
20-
16+
**Original reference**: Wang, Sifan, Xinling Yu, and
17+
Paris Perdikaris. *When and why PINNs fail to train:
18+
A neural tangent kernel perspective*. Journal of
19+
Computational Physics 449 (2022): 110768.
20+
DOI: `10.1016/j.jcp.2021.110768 <https://doi.org/10.1016/j.jcp.2021.110768>`_.
21+
22+
23+
2124
"""
2225

2326
def __init__(self, model, alpha=0.5):
2427
"""
2528
Initialization of the :class:`NeuralTangentKernelWeighting` class.
2629
30+
:param torch.nn.Module model: The neural network model.
2731
:param float alpha: The alpha parameter.
2832
"""
2933

0 commit comments

Comments
 (0)