Neural network-based model approximation (nnbma)
Project description
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/).
Reference
[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.
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
File details
Details for the file nnbma-0.1.2.tar.gz
.
File metadata
- Download URL: nnbma-0.1.2.tar.gz
- Upload date:
- Size: 27.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.6.1 CPython/3.10.12 Linux/6.2.0-36-generic
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | c73089226dcaf93da7b9c97b7076c08b6995be29c8a69f83bceeb70c1931a41e |
|
MD5 | b5753016f4a40d1a1e7bbed753ab1c81 |
|
BLAKE2b-256 | 1b268a96e3d1641e5f5fc04d294e1a94b2fa17e1e04fd81cbe359232a4331571 |
File details
Details for the file nnbma-0.1.2-py3-none-any.whl
.
File metadata
- Download URL: nnbma-0.1.2-py3-none-any.whl
- Upload date:
- Size: 36.7 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.6.1 CPython/3.10.12 Linux/6.2.0-36-generic
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 8437576cd712c36a6e845eb37b574069da5781854ff1dace2ed1a7ee1a4b9f73 |
|
MD5 | e5788eaf6ee57e51c8a12a44a8169d0d |
|
BLAKE2b-256 | 1dc24e34bfe976e0ebdbed7025864ab184c0a7643b2596e43d57e25e1b2d58d5 |