Skip to main content

Neural network-based model approximation (nnbma)

Project description

Neural network-based model approximation (nnbma)

PyPI version 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-0.1.1.tar.gz (27.4 kB view details)

Uploaded Source

Built Distribution

nnbma-0.1.1-py3-none-any.whl (36.2 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: nnbma-0.1.1.tar.gz
  • Upload date:
  • Size: 27.4 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.1.tar.gz
Algorithm Hash digest
SHA256 d1d5f759b3d2a02d5927e4b0c6c4a3c76cd395570e522a93bb2df2cf029c5a1a
MD5 9dfdbd0f44b5148dbd3e2bab76d7eacd
BLAKE2b-256 908777415c088f01ae4058dc7cf720b4165ce3aa12d5f98a5e2eaf39de4c11f6

See more details on using hashes here.

File details

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

File metadata

  • Download URL: nnbma-0.1.1-py3-none-any.whl
  • Upload date:
  • Size: 36.2 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.1-py3-none-any.whl
Algorithm Hash digest
SHA256 1e84642dd7bd5f6eaaf7fbc70e5ebfad21f820f38eaecb7ad871b66fb752274f
MD5 653a6be4ddf49ffb468c2980b40ab184
BLAKE2b-256 e452f0fddad95a14bd632d9f86f3040169d0857bf47e3bf722ee43672ffaff04

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