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.
- jinns/__init__.py +2 -0
- jinns/data/_Batchs.py +27 -0
- jinns/data/_DataGenerators.py +904 -1203
- jinns/data/__init__.py +4 -8
- jinns/experimental/__init__.py +0 -2
- jinns/experimental/_diffrax_solver.py +5 -5
- jinns/loss/_DynamicLoss.py +282 -305
- jinns/loss/_DynamicLossAbstract.py +321 -168
- jinns/loss/_LossODE.py +292 -309
- jinns/loss/_LossPDE.py +625 -1010
- jinns/loss/__init__.py +21 -5
- jinns/loss/_boundary_conditions.py +87 -41
- jinns/loss/{_Losses.py → _loss_utils.py} +95 -44
- jinns/loss/_loss_weights.py +59 -0
- jinns/loss/_operators.py +78 -72
- jinns/parameters/__init__.py +6 -0
- jinns/parameters/_derivative_keys.py +94 -0
- jinns/parameters/_params.py +115 -0
- jinns/plot/__init__.py +5 -0
- jinns/{data/_display.py → plot/_plot.py} +98 -75
- jinns/solver/_rar.py +183 -39
- jinns/solver/_solve.py +151 -124
- jinns/utils/__init__.py +3 -9
- jinns/utils/_containers.py +37 -44
- jinns/utils/_hyperpinn.py +224 -119
- jinns/utils/_pinn.py +183 -111
- jinns/utils/_save_load.py +121 -56
- jinns/utils/_spinn.py +113 -86
- jinns/utils/_types.py +64 -0
- jinns/utils/_utils.py +6 -160
- jinns/validation/_validation.py +48 -140
- {jinns-0.9.0.dist-info → jinns-1.0.0.dist-info}/METADATA +4 -4
- jinns-1.0.0.dist-info/RECORD +38 -0
- {jinns-0.9.0.dist-info → jinns-1.0.0.dist-info}/WHEEL +1 -1
- jinns/experimental/_sinuspinn.py +0 -135
- jinns/experimental/_spectralpinn.py +0 -87
- jinns/solver/_seq2seq.py +0 -157
- jinns/utils/_optim.py +0 -147
- jinns/utils/_utils_uspinn.py +0 -727
- jinns-0.9.0.dist-info/RECORD +0 -36
- {jinns-0.9.0.dist-info → jinns-1.0.0.dist-info}/LICENSE +0 -0
- {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
|
jinns/experimental/__init__.py
CHANGED
|
@@ -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
|
-
|
|
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
|
|
112
|
-
depend on
|
|
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
|
|