jinns 1.6.0__tar.gz → 1.7.0__tar.gz
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-1.7.0/.pre-commit-config.yaml +25 -0
- {jinns-1.6.0 → jinns-1.7.0}/Notebooks/ODE/1D_Generalized_Lotka_Volterra.ipynb +6 -4
- jinns-1.7.0/Notebooks/ODE/linear_fo_equation.ipynb +537 -0
- {jinns-1.6.0 → jinns-1.7.0}/Notebooks/ODE/systems_biology_informed_neural_network.ipynb +22 -11
- {jinns-1.6.0 → jinns-1.7.0}/Notebooks/PDE/1D_non_stationary_Burgers.ipynb +21 -10
- {jinns-1.6.0 → jinns-1.7.0}/Notebooks/PDE/1D_non_stationary_Fisher_KPP_Bounded_Domain.ipynb +3 -1
- {jinns-1.6.0 → jinns-1.7.0}/Notebooks/PDE/2D_Heat_inverse_problem.ipynb +3 -1
- {jinns-1.6.0 → jinns-1.7.0}/Notebooks/PDE/2D_Navier_Stokes_PipeFlow.ipynb +10 -8
- {jinns-1.6.0 → jinns-1.7.0}/Notebooks/PDE/2D_Navier_Stokes_PipeFlow_Metamodel_hyperpinn.ipynb +6 -3
- {jinns-1.6.0 → jinns-1.7.0}/Notebooks/PDE/2D_Navier_Stokes_PipeFlow_SoftConstraints.ipynb +9 -5
- {jinns-1.6.0 → jinns-1.7.0}/Notebooks/PDE/2D_Poisson_inverse_problem.ipynb +3 -1
- {jinns-1.6.0 → jinns-1.7.0}/Notebooks/PDE/2D_non_stationary_OU.ipynb +3 -3
- {jinns-1.6.0 → jinns-1.7.0}/Notebooks/PDE/Reaction_Diffusion_2D_heterogenous_model.ipynb +7 -7
- {jinns-1.6.0 → jinns-1.7.0}/Notebooks/PDE/Reaction_Diffusion_2D_homogeneous_metamodel_hyperpinn_diffrax.ipynb +2 -2
- {jinns-1.6.0 → jinns-1.7.0}/Notebooks/Tutorials/1D_non_stationary_Burgers_JointEstimation_Vanilla.ipynb +97 -43
- jinns-1.7.0/Notebooks/Tutorials/GLV_JointEstimation_Alternate.ipynb +2380 -0
- {jinns-1.6.0 → jinns-1.7.0}/Notebooks/Tutorials/implementing_your_own_PDE_problem.ipynb +22 -11
- {jinns-1.6.0 → jinns-1.7.0}/Notebooks/Tutorials/introducing_validation_loss.ipynb +3 -1
- jinns-1.7.0/Notebooks/Tutorials/utils_GLV_JointEstimation_Alternate.py +148 -0
- {jinns-1.6.0 → jinns-1.7.0}/PKG-INFO +16 -14
- {jinns-1.6.0 → jinns-1.7.0}/README.md +4 -5
- jinns-1.7.0/docs/api/solver.md +15 -0
- {jinns-1.6.0 → jinns-1.7.0}/docs/changelog.md +8 -0
- {jinns-1.6.0 → jinns-1.7.0}/docs/index.md +2 -2
- jinns-1.7.0/img/jinns-diagram.png +0 -0
- {jinns-1.6.0 → jinns-1.7.0}/jinns/__init__.py +2 -1
- {jinns-1.6.0 → jinns-1.7.0}/jinns/data/_DataGeneratorObservations.py +13 -2
- {jinns-1.6.0 → jinns-1.7.0}/jinns/loss/_LossODE.py +39 -12
- {jinns-1.6.0 → jinns-1.7.0}/jinns/loss/_LossPDE.py +67 -31
- {jinns-1.6.0 → jinns-1.7.0}/jinns/loss/_abstract_loss.py +33 -8
- {jinns-1.6.0 → jinns-1.7.0}/jinns/parameters/_derivative_keys.py +13 -6
- {jinns-1.6.0 → jinns-1.7.0}/jinns/parameters/_params.py +10 -0
- {jinns-1.6.0 → jinns-1.7.0}/jinns/solver/_solve.py +98 -366
- jinns-1.7.0/jinns/solver/_solve_alternate.py +885 -0
- jinns-1.7.0/jinns/solver/_utils.py +623 -0
- {jinns-1.6.0 → jinns-1.7.0}/jinns/utils/_DictToModuleMeta.py +3 -1
- {jinns-1.6.0 → jinns-1.7.0}/jinns/utils/_containers.py +8 -4
- {jinns-1.6.0 → jinns-1.7.0}/jinns/utils/_types.py +42 -1
- {jinns-1.6.0 → jinns-1.7.0}/jinns.egg-info/PKG-INFO +16 -14
- {jinns-1.6.0 → jinns-1.7.0}/jinns.egg-info/SOURCES.txt +4 -0
- jinns-1.7.0/jinns.egg-info/requires.txt +15 -0
- {jinns-1.6.0 → jinns-1.7.0}/mkdocs.yml +2 -1
- {jinns-1.6.0 → jinns-1.7.0}/pyproject.toml +6 -5
- {jinns-1.6.0 → jinns-1.7.0}/tests/adaptative_weight_tests/test_loss_weight_update.py +1 -1
- jinns-1.7.0/tests/alternate_solver_tests/test_solve_alternate.py +164 -0
- {jinns-1.6.0 → jinns-1.7.0}/tests/parameters_tests/test_DerivativeKeysODE.py +45 -2
- {jinns-1.6.0 → jinns-1.7.0}/tests/sharding_tests/test_Burgers_x32_multiple_shardings.py +3 -3
- {jinns-1.6.0 → jinns-1.7.0}/tests/solver_tests/test_Burgers_x32.py +1 -1
- {jinns-1.6.0 → jinns-1.7.0}/tests/solver_tests/test_Burgers_x64.py +1 -1
- {jinns-1.6.0 → jinns-1.7.0}/tests/solver_tests/test_Fisher_x32.py +1 -1
- {jinns-1.6.0 → jinns-1.7.0}/tests/solver_tests/test_Fisher_x64.py +1 -1
- {jinns-1.6.0 → jinns-1.7.0}/tests/solver_tests/test_GLV_x32.py +8 -6
- {jinns-1.6.0 → jinns-1.7.0}/tests/solver_tests/test_GLV_x64.py +1 -1
- {jinns-1.6.0 → jinns-1.7.0}/tests/solver_tests/test_NSPipeFlow_x32.py +1 -4
- {jinns-1.6.0 → jinns-1.7.0}/tests/solver_tests/test_NSPipeFlow_x64.py +1 -4
- {jinns-1.6.0 → jinns-1.7.0}/tests/solver_tests/test_OU1D_statio_x32.py +1 -1
- {jinns-1.6.0 → jinns-1.7.0}/tests/solver_tests/test_OU2D_x32.py +1 -1
- {jinns-1.6.0 → jinns-1.7.0}/tests/solver_tests/test_nan_params_catch.py +4 -2
- {jinns-1.6.0 → jinns-1.7.0}/tests/solver_tests/test_parameter_tracker.py +20 -9
- {jinns-1.6.0 → jinns-1.7.0}/tests/solver_tests/test_rar_algorithm.py +7 -5
- {jinns-1.6.0 → jinns-1.7.0}/tests/solver_tests_hyperpinn/test_NSPipeFlow_x32_hyperpinn.py +1 -1
- {jinns-1.6.0 → jinns-1.7.0}/tests/solver_tests_spinn/test_Burgers_x32_spinn.py +1 -1
- {jinns-1.6.0 → jinns-1.7.0}/tests/solver_tests_spinn/test_Fisher_x32_spinn.py +1 -1
- {jinns-1.6.0 → jinns-1.7.0}/tests/solver_tests_spinn/test_NSPipeFlow_x32_spinn.py +1 -4
- {jinns-1.6.0 → jinns-1.7.0}/tests/solver_tests_spinn/test_OU2D_x32_spinn.py +1 -2
- {jinns-1.6.0 → jinns-1.7.0}/tests/solver_tests_spinn/test_ReactionDiffusion_nonhomo_x64_spinn.py +1 -1
- {jinns-1.6.0 → jinns-1.7.0}/tests/validation_tests/test_vanilla_validation.py +2 -1
- jinns-1.6.0/.pre-commit-config.yaml +0 -11
- jinns-1.6.0/Notebooks/ODE/linear_fo_equation.ipynb +0 -539
- jinns-1.6.0/docs/api/solver.md +0 -7
- jinns-1.6.0/img/jinns-diagram.png +0 -0
- jinns-1.6.0/jinns/solver/_utils.py +0 -120
- jinns-1.6.0/jinns.egg-info/requires.txt +0 -12
- {jinns-1.6.0 → jinns-1.7.0}/.gitignore +0 -0
- {jinns-1.6.0 → jinns-1.7.0}/.gitlab-ci.yml +0 -0
- {jinns-1.6.0 → jinns-1.7.0}/AUTHORS +0 -0
- {jinns-1.6.0 → jinns-1.7.0}/LICENSE +0 -0
- {jinns-1.6.0 → jinns-1.7.0}/Notebooks/ODE/MS_model_Verhulst.ipynb +0 -0
- {jinns-1.6.0 → jinns-1.7.0}/Notebooks/ODE/sbinn_data/glucose.dat +0 -0
- {jinns-1.6.0 → jinns-1.7.0}/Notebooks/ODE/sbinn_data/meal.dat +0 -0
- {jinns-1.6.0 → jinns-1.7.0}/Notebooks/PDE/2d_nonstatio_ou_standardsampling.png +0 -0
- {jinns-1.6.0 → jinns-1.7.0}/Notebooks/PDE/OU_1D_nonstatio_solution_grid.npy +0 -0
- {jinns-1.6.0 → jinns-1.7.0}/Notebooks/Tutorials/burgers_solution_grid.npy +0 -0
- {jinns-1.6.0 → jinns-1.7.0}/Notebooks/Tutorials/load_save_model.ipynb +0 -0
- {jinns-1.6.0 → jinns-1.7.0}/codemeta.json +0 -0
- {jinns-1.6.0 → jinns-1.7.0}/docs/README.md +0 -0
- {jinns-1.6.0 → jinns-1.7.0}/docs/_static/custom_css.css +0 -0
- {jinns-1.6.0 → jinns-1.7.0}/docs/_static/favicon.png +0 -0
- {jinns-1.6.0 → jinns-1.7.0}/docs/api/advanced/derivative_keys.md +0 -0
- {jinns-1.6.0 → jinns-1.7.0}/docs/api/advanced/differential_operators.md +0 -0
- {jinns-1.6.0 → jinns-1.7.0}/docs/api/advanced/loss_weight_updates.md +0 -0
- {jinns-1.6.0 → jinns-1.7.0}/docs/api/datagenerators/datagenerators_core.md +0 -0
- {jinns-1.6.0 → jinns-1.7.0}/docs/api/datagenerators/datagenerators_other.md +0 -0
- {jinns-1.6.0 → jinns-1.7.0}/docs/api/loss/dynamic_loss.md +0 -0
- {jinns-1.6.0 → jinns-1.7.0}/docs/api/loss/loss_weights.md +0 -0
- {jinns-1.6.0 → jinns-1.7.0}/docs/api/loss/loss_xde.md +0 -0
- {jinns-1.6.0 → jinns-1.7.0}/docs/api/pinn/hyperpinn.md +0 -0
- {jinns-1.6.0 → jinns-1.7.0}/docs/api/pinn/pinn.md +0 -0
- {jinns-1.6.0 → jinns-1.7.0}/docs/api/pinn/ppinn.md +0 -0
- {jinns-1.6.0 → jinns-1.7.0}/docs/api/pinn/save_load.md +0 -0
- {jinns-1.6.0 → jinns-1.7.0}/docs/api/pinn/spinn.md +0 -0
- {jinns-1.6.0 → jinns-1.7.0}/docs/api/plot.md +0 -0
- {jinns-1.6.0 → jinns-1.7.0}/docs/doc_requirements.txt +0 -0
- {jinns-1.6.0 → jinns-1.7.0}/docs/javascripts/katex.js +0 -0
- {jinns-1.6.0 → jinns-1.7.0}/docs/maths/fokker_planck.md +0 -0
- {jinns-1.6.0 → jinns-1.7.0}/docs/maths/introduction_to_pinns.md +0 -0
- {jinns-1.6.0 → jinns-1.7.0}/jinns/data/_AbstractDataGenerator.py +0 -0
- {jinns-1.6.0 → jinns-1.7.0}/jinns/data/_Batchs.py +0 -0
- {jinns-1.6.0 → jinns-1.7.0}/jinns/data/_CubicMeshPDENonStatio.py +0 -0
- {jinns-1.6.0 → jinns-1.7.0}/jinns/data/_CubicMeshPDEStatio.py +0 -0
- {jinns-1.6.0 → jinns-1.7.0}/jinns/data/_DataGeneratorODE.py +0 -0
- {jinns-1.6.0 → jinns-1.7.0}/jinns/data/_DataGeneratorParameter.py +0 -0
- {jinns-1.6.0 → jinns-1.7.0}/jinns/data/__init__.py +0 -0
- {jinns-1.6.0 → jinns-1.7.0}/jinns/data/_utils.py +0 -0
- {jinns-1.6.0 → jinns-1.7.0}/jinns/experimental/__init__.py +0 -0
- {jinns-1.6.0 → jinns-1.7.0}/jinns/experimental/_diffrax_solver.py +0 -0
- {jinns-1.6.0 → jinns-1.7.0}/jinns/loss/_DynamicLoss.py +0 -0
- {jinns-1.6.0 → jinns-1.7.0}/jinns/loss/_DynamicLossAbstract.py +0 -0
- {jinns-1.6.0 → jinns-1.7.0}/jinns/loss/__init__.py +0 -0
- {jinns-1.6.0 → jinns-1.7.0}/jinns/loss/_boundary_conditions.py +0 -0
- {jinns-1.6.0 → jinns-1.7.0}/jinns/loss/_loss_components.py +0 -0
- {jinns-1.6.0 → jinns-1.7.0}/jinns/loss/_loss_utils.py +0 -0
- {jinns-1.6.0 → jinns-1.7.0}/jinns/loss/_loss_weight_updates.py +0 -0
- {jinns-1.6.0 → jinns-1.7.0}/jinns/loss/_loss_weights.py +0 -0
- {jinns-1.6.0 → jinns-1.7.0}/jinns/loss/_operators.py +0 -0
- {jinns-1.6.0 → jinns-1.7.0}/jinns/nn/__init__.py +0 -0
- {jinns-1.6.0 → jinns-1.7.0}/jinns/nn/_abstract_pinn.py +0 -0
- {jinns-1.6.0 → jinns-1.7.0}/jinns/nn/_hyperpinn.py +0 -0
- {jinns-1.6.0 → jinns-1.7.0}/jinns/nn/_mlp.py +0 -0
- {jinns-1.6.0 → jinns-1.7.0}/jinns/nn/_pinn.py +0 -0
- {jinns-1.6.0 → jinns-1.7.0}/jinns/nn/_ppinn.py +0 -0
- {jinns-1.6.0 → jinns-1.7.0}/jinns/nn/_save_load.py +0 -0
- {jinns-1.6.0 → jinns-1.7.0}/jinns/nn/_spinn.py +0 -0
- {jinns-1.6.0 → jinns-1.7.0}/jinns/nn/_spinn_mlp.py +0 -0
- {jinns-1.6.0 → jinns-1.7.0}/jinns/nn/_utils.py +0 -0
- {jinns-1.6.0 → jinns-1.7.0}/jinns/parameters/__init__.py +0 -0
- {jinns-1.6.0 → jinns-1.7.0}/jinns/plot/__init__.py +0 -0
- {jinns-1.6.0 → jinns-1.7.0}/jinns/plot/_plot.py +0 -0
- {jinns-1.6.0 → jinns-1.7.0}/jinns/solver/__init__.py +0 -0
- {jinns-1.6.0 → jinns-1.7.0}/jinns/solver/_rar.py +0 -0
- {jinns-1.6.0 → jinns-1.7.0}/jinns/utils/_ItemizableModule.py +0 -0
- {jinns-1.6.0 → jinns-1.7.0}/jinns/utils/__init__.py +0 -0
- {jinns-1.6.0 → jinns-1.7.0}/jinns/utils/_utils.py +0 -0
- {jinns-1.6.0 → jinns-1.7.0}/jinns/validation/__init__.py +0 -0
- {jinns-1.6.0 → jinns-1.7.0}/jinns/validation/_validation.py +0 -0
- {jinns-1.6.0 → jinns-1.7.0}/jinns.egg-info/dependency_links.txt +0 -0
- {jinns-1.6.0 → jinns-1.7.0}/jinns.egg-info/top_level.txt +0 -0
- {jinns-1.6.0 → jinns-1.7.0}/setup.cfg +0 -0
- {jinns-1.6.0 → jinns-1.7.0}/tests/adaptative_weight_tests/test_ReLoBRaLo_update.py +0 -0
- {jinns-1.6.0 → jinns-1.7.0}/tests/adaptative_weight_tests/test_lr_annealing.py +0 -0
- {jinns-1.6.0 → jinns-1.7.0}/tests/adaptative_weight_tests/test_soft_adapt.py +0 -0
- {jinns-1.6.0 → jinns-1.7.0}/tests/conftest.py +0 -0
- {jinns-1.6.0 → jinns-1.7.0}/tests/dataGenerator_tests/test_CubicMeshPDENonStatio.py +0 -0
- {jinns-1.6.0 → jinns-1.7.0}/tests/dataGenerator_tests/test_CubicMeshPDEStatio.py +0 -0
- {jinns-1.6.0 → jinns-1.7.0}/tests/dataGenerator_tests/test_DataGeneratorODE.py +0 -0
- {jinns-1.6.0 → jinns-1.7.0}/tests/dataGenerator_tests/test_DataGeneratorParameter.py +0 -0
- {jinns-1.6.0 → jinns-1.7.0}/tests/dataGenerator_tests/test_sobol_method.py +0 -0
- {jinns-1.6.0 → jinns-1.7.0}/tests/loss_tests/test_lossODE.py +0 -0
- {jinns-1.6.0 → jinns-1.7.0}/tests/loss_tests/test_lossPDEnonstatio.py +0 -0
- {jinns-1.6.0 → jinns-1.7.0}/tests/loss_tests/test_lossPDEstatio.py +0 -0
- {jinns-1.6.0 → jinns-1.7.0}/tests/loss_tests/test_norm_loss.py +0 -0
- {jinns-1.6.0 → jinns-1.7.0}/tests/nn_tests/test_hyperpinns.py +0 -0
- {jinns-1.6.0 → jinns-1.7.0}/tests/nn_tests/test_mlp.py +0 -0
- {jinns-1.6.0 → jinns-1.7.0}/tests/nn_tests/test_pinn.py +0 -0
- {jinns-1.6.0 → jinns-1.7.0}/tests/nn_tests/test_ppinn_mlp.py +0 -0
- {jinns-1.6.0 → jinns-1.7.0}/tests/nn_tests/test_smlp.py +0 -0
- {jinns-1.6.0 → jinns-1.7.0}/tests/nn_tests/test_spinn.py +0 -0
- {jinns-1.6.0 → jinns-1.7.0}/tests/operator_tests/test_divergence_fwd.py +0 -0
- {jinns-1.6.0 → jinns-1.7.0}/tests/operator_tests/test_divergence_rev.py +0 -0
- {jinns-1.6.0 → jinns-1.7.0}/tests/operator_tests/test_laplacian_fwd.py +0 -0
- {jinns-1.6.0 → jinns-1.7.0}/tests/operator_tests/test_laplacian_rev.py +0 -0
- {jinns-1.6.0 → jinns-1.7.0}/tests/operator_tests/test_vectorial_laplacian_fwd.py +0 -0
- {jinns-1.6.0 → jinns-1.7.0}/tests/operator_tests/test_vectorial_laplacian_rev.py +0 -0
- {jinns-1.6.0 → jinns-1.7.0}/tests/parameters_tests/test_params.py +0 -0
- {jinns-1.6.0 → jinns-1.7.0}/tests/plot_tests/test_plot1D.py +0 -0
- {jinns-1.6.0 → jinns-1.7.0}/tests/plot_tests/test_plot2D.py +0 -0
- {jinns-1.6.0 → jinns-1.7.0}/tests/pytest.ini +0 -0
- {jinns-1.6.0 → jinns-1.7.0}/tests/save_load_tests/test_saving_loading_hyperpinn.py +0 -0
- {jinns-1.6.0 → jinns-1.7.0}/tests/save_load_tests/test_saving_loading_pinn.py +0 -0
- {jinns-1.6.0 → jinns-1.7.0}/tests/save_load_tests/test_saving_loading_spinn.py +0 -0
- {jinns-1.6.0 → jinns-1.7.0}/tests/solver_tests_inverse/test_simple_inverse_pb.py +0 -0
- {jinns-1.6.0 → jinns-1.7.0}/tests/utils_tests/test_solver_utils.py +0 -0
- {jinns-1.6.0 → jinns-1.7.0}/tests/utils_tests/test_subtract_with_check.py +0 -0
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
default_stages: [pre-commit]
|
|
2
|
+
repos:
|
|
3
|
+
- repo: https://github.com/astral-sh/ruff-pre-commit
|
|
4
|
+
# Ruff version.
|
|
5
|
+
rev: v0.11.8
|
|
6
|
+
hooks:
|
|
7
|
+
# Run the linter.
|
|
8
|
+
- id: ruff
|
|
9
|
+
args: [ --fix ]
|
|
10
|
+
# Run the formatter.
|
|
11
|
+
- id: ruff-format
|
|
12
|
+
- repo: local
|
|
13
|
+
hooks:
|
|
14
|
+
- id: pylint
|
|
15
|
+
name: pylint
|
|
16
|
+
entry: pylint
|
|
17
|
+
language: system
|
|
18
|
+
types: [python]
|
|
19
|
+
require_serial: true
|
|
20
|
+
args:
|
|
21
|
+
[
|
|
22
|
+
"-rn", # Only display messages
|
|
23
|
+
"-sn", # Don't display the score
|
|
24
|
+
"--errors-only",
|
|
25
|
+
]
|
|
@@ -343,7 +343,7 @@
|
|
|
343
343
|
" u=u,\n",
|
|
344
344
|
" loss_weights=loss_weights,\n",
|
|
345
345
|
" dynamic_loss=dynamic_loss,\n",
|
|
346
|
-
" initial_condition=(
|
|
346
|
+
" initial_condition=(tmin, y0),\n",
|
|
347
347
|
" params=init_params,\n",
|
|
348
348
|
")"
|
|
349
349
|
]
|
|
@@ -497,8 +497,10 @@
|
|
|
497
497
|
}
|
|
498
498
|
],
|
|
499
499
|
"source": [
|
|
500
|
-
"params, total_loss_list, loss_by_term_dict, data, loss, _, _, _, _, _ =
|
|
501
|
-
"
|
|
500
|
+
"params, total_loss_list, loss_by_term_dict, data, loss, _, _, _, _, _, _, _ = (\n",
|
|
501
|
+
" jinns.solve(\n",
|
|
502
|
+
" init_params=params, data=train_data, optimizer=tx, loss=loss, n_iter=n_iter\n",
|
|
503
|
+
" )\n",
|
|
502
504
|
")"
|
|
503
505
|
]
|
|
504
506
|
},
|
|
@@ -773,7 +775,7 @@
|
|
|
773
775
|
"name": "python",
|
|
774
776
|
"nbconvert_exporter": "python",
|
|
775
777
|
"pygments_lexer": "ipython3",
|
|
776
|
-
"version": "3.11.
|
|
778
|
+
"version": "3.11.14"
|
|
777
779
|
},
|
|
778
780
|
"vscode": {
|
|
779
781
|
"interpreter": {
|