jinns 0.9.0__py3-none-any.whl → 1.0.0__py3-none-any.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (42) hide show
  1. jinns/__init__.py +2 -0
  2. jinns/data/_Batchs.py +27 -0
  3. jinns/data/_DataGenerators.py +904 -1203
  4. jinns/data/__init__.py +4 -8
  5. jinns/experimental/__init__.py +0 -2
  6. jinns/experimental/_diffrax_solver.py +5 -5
  7. jinns/loss/_DynamicLoss.py +282 -305
  8. jinns/loss/_DynamicLossAbstract.py +321 -168
  9. jinns/loss/_LossODE.py +292 -309
  10. jinns/loss/_LossPDE.py +625 -1010
  11. jinns/loss/__init__.py +21 -5
  12. jinns/loss/_boundary_conditions.py +87 -41
  13. jinns/loss/{_Losses.py → _loss_utils.py} +95 -44
  14. jinns/loss/_loss_weights.py +59 -0
  15. jinns/loss/_operators.py +78 -72
  16. jinns/parameters/__init__.py +6 -0
  17. jinns/parameters/_derivative_keys.py +94 -0
  18. jinns/parameters/_params.py +115 -0
  19. jinns/plot/__init__.py +5 -0
  20. jinns/{data/_display.py → plot/_plot.py} +98 -75
  21. jinns/solver/_rar.py +183 -39
  22. jinns/solver/_solve.py +151 -124
  23. jinns/utils/__init__.py +3 -9
  24. jinns/utils/_containers.py +37 -44
  25. jinns/utils/_hyperpinn.py +224 -119
  26. jinns/utils/_pinn.py +183 -111
  27. jinns/utils/_save_load.py +121 -56
  28. jinns/utils/_spinn.py +113 -86
  29. jinns/utils/_types.py +64 -0
  30. jinns/utils/_utils.py +6 -160
  31. jinns/validation/_validation.py +48 -140
  32. {jinns-0.9.0.dist-info → jinns-1.0.0.dist-info}/METADATA +4 -4
  33. jinns-1.0.0.dist-info/RECORD +38 -0
  34. {jinns-0.9.0.dist-info → jinns-1.0.0.dist-info}/WHEEL +1 -1
  35. jinns/experimental/_sinuspinn.py +0 -135
  36. jinns/experimental/_spectralpinn.py +0 -87
  37. jinns/solver/_seq2seq.py +0 -157
  38. jinns/utils/_optim.py +0 -147
  39. jinns/utils/_utils_uspinn.py +0 -727
  40. jinns-0.9.0.dist-info/RECORD +0 -36
  41. {jinns-0.9.0.dist-info → jinns-1.0.0.dist-info}/LICENSE +0 -0
  42. {jinns-0.9.0.dist-info → jinns-1.0.0.dist-info}/top_level.txt +0 -0
jinns/data/__init__.py CHANGED
@@ -2,14 +2,10 @@ from ._DataGenerators import (
2
2
  DataGeneratorODE,
3
3
  CubicMeshPDEStatio,
4
4
  CubicMeshPDENonStatio,
5
- DataGeneratorParameter,
6
5
  DataGeneratorObservations,
6
+ DataGeneratorParameter,
7
7
  DataGeneratorObservationsMultiPINNs,
8
- append_param_batch,
9
- append_obs_batch,
10
- )
11
- from ._display import (
12
- plot2d,
13
- plot1d_slice,
14
- plot1d_image,
15
8
  )
9
+ from ._Batchs import ODEBatch, PDEStatioBatch, PDENonStatioBatch
10
+
11
+ from ._DataGenerators import append_obs_batch, append_param_batch
@@ -6,5 +6,3 @@ from ._diffrax_solver import (
6
6
  neumann_boundary_condition,
7
7
  plot_diffrax_solution,
8
8
  )
9
- from ._sinuspinn import create_sinusPINN
10
- from ._spectralpinn import create_spectralPINN
@@ -100,16 +100,16 @@ def reaction_diffusion_2d_vector_field(
100
100
  r"""
101
101
  Matrix stencil implementation of the reaction-diffusion equation using
102
102
  finite differences. See e.g. Section 2.6.1 of
103
- https://hplgit.github.io/fdm-book/doc/pub/book/pdf/fdm-book-4screen.pdf
103
+ <https://hplgit.github.io/fdm-book/doc/pub/book/pdf/fdm-book-4screen.pdf>
104
104
 
105
105
  The reaction-diffusion equation is
106
106
 
107
- .. math::
107
+ $$
108
108
  \partial_t u = D \Delta u + r u (1-u).
109
-
109
+ $$
110
110
  In diffrax, the `vector_field` is the derivative of the function y with
111
- respect to time `t` in the ODE :math:`y'(t) = F(y(t), t)`. Here it does not
112
- depend on `t`.
111
+ respect to time `t` in the ODE $y'(t) = F(y(t), t)$. Here it does not
112
+ depend on $t$.
113
113
  """
114
114
  D, r = args
115
115