Skip to main content

Neural network-based model approximation (nnbma)

Project description

Approximation of the Meudon PDR astrophysical model using neural networks

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

or conda

conda 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

nnbma-0.1.0.tar.gz (22.5 kB view details)

Uploaded Source

Built Distribution

nnbma-0.1.0-py3-none-any.whl (31.5 kB view details)

Uploaded Python 3

File details

Details for the file nnbma-0.1.0.tar.gz.

File metadata

  • Download URL: nnbma-0.1.0.tar.gz
  • Upload date:
  • Size: 22.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.6.1 CPython/3.9.16 Darwin/23.0.0

File hashes

Hashes for nnbma-0.1.0.tar.gz
Algorithm Hash digest
SHA256 04cd3b3c82602b9846c9c71a80d54dd80fe28eb2ec2fbb77c7a2562e2476dbb1
MD5 5d969ca4f5ed80b594be8c171cd48902
BLAKE2b-256 c8770c911a790e436234460c9e2b19d7fcacf2d84bfb376c1c15fa99c7b4b4b6

See more details on using hashes here.

File details

Details for the file nnbma-0.1.0-py3-none-any.whl.

File metadata

  • Download URL: nnbma-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 31.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.6.1 CPython/3.9.16 Darwin/23.0.0

File hashes

Hashes for nnbma-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 6251846be6a8edb85811b59abf319ad3ab5520515921db874b3f611906d48126
MD5 4a7329b14e668f0d84c14a23a77dff77
BLAKE2b-256 b2308c53f4ed0b21c713827421b6a49540d5cc3f20527a43fff13bd806b2cd45

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page