Neural network-based model approximation (nnbma)
Neural network-based model approximation nnbma is a Python package that handle the creation and the training of neural networks to approximate numerical models.
In [1], it was designed and used to derive an approximation of the Meudon PDR code, a complex astrophysical numerical code.
Installation
To build your own neural network for your numerical model, we recommend installing the package.
The package can be installed with pip:
pip install nnbma
To reproduce the results from [1], clone the repo with
git clone git@github.com:einigl/ism-model-nn-approximation.git
Alternatively, you can also download a zip file.
This package relies on PyTorch to build neural networks. It enables to evaluate any neural network, its gradient, and its Hessian matrix efficiently.
If you do not have a Python environment compatible with the above dependencies, we advise you to create a specific conda environment to use this code (https://conda.io/projects/conda/en/latest/user-guide/).
References
[1] Palud, P. & Einig, L. & Le Petit, F. & Bron, E. & Chainais, P. & Chanussot, J. & Pety, J. & Thouvenin, P.-A. & Languignon, D. & Beslić, I. & G. Santa-Maria, M. & Orkisz, J.H. & Ségal, L. & Zakardjian, A. & Bardeau, S. & Gerin, M. & Goicoechea, J.R. & Gratier, P. & Guzman, V. (2023). Neural network-based emulation of interstellar medium models. Astronomy & Astrophysics. 10.1051/0004-6361/202347074.
Metadata
Release files for nnbma 1.0.2
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| nnbma-1.0.2.tar.gz | 28.5 kB | Without provenance | Details for nnbma-1.0.2.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| nnbma-1.0.2-py3-none-any.whl | Python 3 | none | any | Details for nnbma-1.0.2-py3-none-any.whl |
Total release size: 66.3 kB
Release files / nnbma-1.0.2.tar.gz
| Download URL | nnbma-1.0.2.tar.gz |
|---|---|
| Size | 28.5 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
118369ddd9fcf43f0c315166c5944c19dfb2779de5329eaf5a7cdcda1c83cac3
|
|
BLAKE2b-256 checksum How to use checksums |
4ed9267e9c49f6c585d12f2f220843f2e11a3aaa768d6d3f223b3e0a06ba929b
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/5.1.1 CPython/3.12.7
|
Release files / nnbma-1.0.2-py3-none-any.whl
| Download URL | nnbma-1.0.2-py3-none-any.whl |
|---|---|
| Size | 37.8 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
b2454637ce02c3ab41433e7c8b1eb3595982560b43f97f15724e3ba0957b1c5d
|
|
BLAKE2b-256 checksum How to use checksums |
8ec259e786bdccc5fc1963bd85a390fe4f57c6008d71721e35b4e16215d6d681
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/5.1.1 CPython/3.12.7
|
Security for nnbma 1.0.2
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.