Skip to main content

Neural network-based model approximation (nnbma)

Project description

Neural network-based model approximation (nnbma)

PyPI version Documentation Status test coverage

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

nnbma-1.0.0.tar.gz (28.5 kB view details)

Uploaded Source

Built Distribution

nnbma-1.0.0-py3-none-any.whl (37.5 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: nnbma-1.0.0.tar.gz
  • Upload date:
  • Size: 28.5 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

Hashes for nnbma-1.0.0.tar.gz
Algorithm Hash digest
SHA256 e2608b6f36480f2307031a5165f9ae7d12a2fe1ddf1164e2d708630e1a0ae74d
MD5 b987417406ea274e25fbc7be6eb42f9f
BLAKE2b-256 d222d767196b85b6af27958a9b91cf1dd455a6619a92bcbef46f526c2bc42e69

See more details on using hashes here.

File details

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

File metadata

  • Download URL: nnbma-1.0.0-py3-none-any.whl
  • Upload date:
  • Size: 37.5 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

Hashes for nnbma-1.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 f9154d13188c222822c08e78b8252b99a5343fb5f2c2d825f1d3a065be37e6ec
MD5 8404a8f353167615750cd0cfb2993eef
BLAKE2b-256 5c8f799169441dbb30bbf5626aecc3c686efc741d138fad32b6ffda6c8de4835

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