Skip to content

Commit 2f54a2c

Browse files
move files to the weighting module
1 parent 2f6f9f0 commit 2f54a2c

33 files changed

Lines changed: 671 additions & 440 deletions

docs/source/_rst/_code.rst

Lines changed: 16 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -303,8 +303,8 @@ Callbacks
303303
Refinement Interface <callback/refinement/refinement_interface.rst>
304304
R3 Refinement <callback/refinement/r3_refinement.rst>
305305

306-
Losses and Weightings
307-
---------------------
306+
Losses
307+
---------
308308

309309
.. toctree::
310310
:titlesonly:
@@ -313,8 +313,17 @@ Losses and Weightings
313313
BaseLoss <loss/base_loss.rst>
314314
LpLoss <loss/lp_loss.rst>
315315
PowerLoss <loss/power_loss.rst>
316-
WeightingInterface <loss/weighting_interface.rst>
317-
ScalarWeighting <loss/scalar_weighting.rst>
318-
NeuralTangentKernelWeighting <loss/ntk_weighting.rst>
319-
SelfAdaptiveWeighting <loss/self_adaptive_weighting.rst>
320-
LinearWeighting <loss/linear_weighting.rst>
316+
317+
Weighting Schemas
318+
--------------------
319+
320+
.. toctree::
321+
:titlesonly:
322+
323+
Weighting Interface <weighting/weighting_interface.rst>
324+
Base Weighting <weighting/base_weighting.rst>
325+
Linear Weighting <weighting/linear_weighting.rst>
326+
Neural-Tangent-Kernel Weighting <weighting/ntk_weighting.rst>
327+
No Weighting <weighting/no_weighting.rst>
328+
Scalar Weighting <weighting/scalar_weighting.rst>
329+
Self-Adaptive Weighting <weighting/self_adaptive_weighting.rst>

docs/source/_rst/loss/linear_weighting.rst

Lines changed: 0 additions & 11 deletions
This file was deleted.

docs/source/_rst/loss/ntk_weighting.rst

Lines changed: 0 additions & 9 deletions
This file was deleted.

docs/source/_rst/loss/scalar_weighting.rst

Lines changed: 0 additions & 9 deletions
This file was deleted.

docs/source/_rst/loss/self_adaptive_weighting.rst

Lines changed: 0 additions & 9 deletions
This file was deleted.

docs/source/_rst/loss/weighting_interface.rst

Lines changed: 0 additions & 9 deletions
This file was deleted.
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
BaseWeighting
2+
===================
3+
.. currentmodule:: pina.weighting.base_weighting
4+
5+
.. automodule:: pina._src.weighting.base_weighting
6+
7+
.. autoclass:: pina._src.weighting.base_weighting.BaseWeighting
8+
:members:
9+
:show-inheritance:
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
LinearWeighting
2+
=============================
3+
4+
.. currentmodule:: pina.weighting
5+
6+
.. automodule:: pina._src.weighting.linear_weighting
7+
:no-members:
8+
9+
.. autoclass:: pina._src.weighting.linear_weighting.LinearWeighting
10+
:members:
11+
:show-inheritance:
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
No Weighting
2+
===================
3+
.. currentmodule:: pina.weighting.no_weighting
4+
5+
.. automodule:: pina._src.weighting.no_weighting
6+
7+
.. autoclass:: pina._src.weighting.no_weighting._NoWeighting
8+
:members:
9+
:show-inheritance:
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
NeuralTangentKernelWeighting
2+
=============================
3+
.. currentmodule:: pina.weighting.ntk_weighting
4+
5+
.. automodule:: pina._src.weighting.ntk_weighting
6+
7+
.. autoclass:: pina._src.weighting.ntk_weighting.NeuralTangentKernelWeighting
8+
:members:
9+
:show-inheritance:

0 commit comments

Comments
 (0)