jeansgnn

Neural Simulation-based Inference with GNN for Jeans Modeling

https://github.com/trivnguyen/jeansgnn

Science Score: 67.0%

This score indicates how likely this project is to be science-related based on various indicators:

  • CITATION.cff file
    Found CITATION.cff file
  • codemeta.json file
    Found codemeta.json file
  • .zenodo.json file
    Found .zenodo.json file
  • DOI references
    Found 4 DOI reference(s) in README
  • Academic publication links
    Links to: arxiv.org
  • Academic email domains
  • Institutional organization owner
  • JOSS paper metadata
  • Scientific vocabulary similarity
    Low similarity (13.6%) to scientific vocabulary

Keywords

geometric-deep-learning graph-neural-networks pytorch pytorch-geometric pytorch-lightning simulation-based-inference
Last synced: 6 months ago · JSON representation ·

Repository

Neural Simulation-based Inference with GNN for Jeans Modeling

Basic Info
  • Host: GitHub
  • Owner: trivnguyen
  • License: mit
  • Language: Jupyter Notebook
  • Default Branch: main
  • Homepage:
  • Size: 15.5 MB
Statistics
  • Stars: 9
  • Watchers: 1
  • Forks: 2
  • Open Issues: 0
  • Releases: 3
Topics
geometric-deep-learning graph-neural-networks pytorch pytorch-geometric pytorch-lightning simulation-based-inference
Created almost 3 years ago · Last pushed almost 2 years ago
Metadata Files
Readme License Citation

README.rst

==================================================
JeansGNN: Neural Simulation-based Inference with GNN for Jeans Modeling
==================================================

JeansGNN is a neural simulation-based inference framework for Jeans modeling based on Nguyen et al. (2023) [1]_. You can also find our paper on arXiv at `https://arxiv.org/abs/2208.12825`.

JeansGNN can also perform the unbinned Jeans analysis as described in Chang & Necib (2021) [2]_.

The framework is built on top of the `PyTorch Geometric `_ and `PyTorch Lightning `_ library.

:Authors:
    Tri Nguyen,
    Siddharth Mishra-Sharma,
    Reuel Williams,
    Laura Chang,
    Lina Necib,
:Maintainer:
    Tri Nguyen (tnguy@mit.edu)
:Version: 0.0.0 (2023-04-14)

Installation
------------

To install JeansGNN, simply clone the repo and install with `pip`:

.. code-block:: bash

    git clone https://github.com/trivnguyen/JeansGNN.git
    pip install .

This should install all the dependencies as well. If you want to install the dependencies separately, please see the section below.

Dependencies
------------

The following dependencies are required to run this project:

- Python 3.6 or later
- NumPy 1.22.3 or later
- SciPy 1.9.1 or later
- Astropy 5.2.2 or later
- PyTorch Geometric 2.1.0 or later
- PyTorch Lightning 1.7.6 or later
- PyYAML 5.4.1 or later
- Tensorboard 2.7.0 or later
- Bilby 2.1.0 or later

To install the dependencies separately, you can use `pip`:

.. code-block:: bash

    pip install -r requirements.txt

It is recommended to use a virtual environment to manage the dependencies and avoid version conflicts. You can create a virtual environment and activate it using the following commands:

.. code-block:: bash

    python -m venv env
    source env/bin/activate (Linux/MacOS)
    env\Scripts\activate.bat (Windows)

Once the virtual environment is activated, you can install the dependencies using pip as usual.

Usage
-----
An example of the graph-based simulation-based inference method in Nguyen et al. (2023) [1]_ can be found at ``tutorials/example_training.ipynb``.

An example of the binned Jeans analysis in Chang & Necib (2021) [2]_ can be found at ``tutorials/example_binned_jeans.ipynb``.

The rest of the tutorials are under construction. More to come!

Documentation
-------------

Under construction.

Contributing
------------

We welcome contributions to JeansGNN! To contribute, please contact Tri Nguyen (tnguy@mit.edu).

License
-------

JeansGNN is licensed under the MIT license. See ``LICENSE.md`` for more information.

References
----------
.. [1] Tri Nguyen, Siddharth Mishra-Sharma, Reuel Williams, Lina Necib, "Uncovering dark matter density profiles in dwarf galaxies with graph neural networks", *Physical Review D (PRD)*, vol. 107, no. 4, article no. 043015, Feb. 2023, https://doi.org/10.1103/PhysRevD.107.043015

.. [2] Laura J Chang, Lina Necib, Dark matter density profiles in dwarf galaxies: linking Jeans modelling systematics and observation, *Monthly Notices of the Royal Astronomical Society*, Volume 507, Issue 4, November 2021, Pages 4715 4733, https://doi.org/10.1093/mnras/stab2440

Owner

  • Name: Tri Nguyen
  • Login: trivnguyen
  • Kind: user
  • Location: Cambridge
  • Company: MIT

I am a PhD student at MIT with an interest in applying machine learning and data science to astrophysics.

Citation (CITATION.cff)

cff-version: 1.2.0
message: "If you use this software, please cite it as below."
authors:
- family-names: "Nguyen"
  given-names: "Tri"
  orcid: "https://orcid.org/0000-0001-6189-8457"
- family-names: "Mishra-Sharma"
  given-names: "Siddharth"
  orcid: "https://orcid.org/0000-0001-9088-7845"
- family-names: "Williams"
  given-names: "Reuel"
  orcid: "https://orcid.org/0000-0002-8068-7118"
- family-names: "Necib"
  given-names: "Lina"
  orcid: "https://orcid.org/0000-0003-2806-1414"
title: "JeansGNN: Uncovering dark matter density profiles in dwarf galaxies with graph neural networks"
version: 1.0.0
date-released: 2023-08-29
url: "https://github.com/trivnguyen/JeansGNN"

GitHub Events

Total
  • Watch event: 3
Last Year
  • Watch event: 3

Dependencies

.github/workflows/python-publish.yml actions
  • actions/checkout v3 composite
  • actions/setup-python v3 composite
  • pypa/gh-action-pypi-publish 27b31702a0e7fc50959f5ad993c78deac1bdfc29 composite
requirements.txt pypi
  • astropy >=5.2.2
  • bilby >=2.1.0
  • numpy >=1.21.0
  • pytorch-lightning >=1.7.6
  • pyyaml >=5.4.1
  • scipy >=1.9.1
  • tensorboard >=2.7.0
  • torch >=2.0.0
  • torch-geometric >=2.1.0
setup.py pypi