adonath / jax-gamma-ray-prototype

A prototype implementation for 3D gamma-ray analysis in Jax

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Gamma-ray data analysis with Jax Prototype

This repo contains a prototype of a gamma-ray data analysis framework using Jax. The main goal is to asses the feasibility of using Jax as a backend to the (Gammapy)[https://gammapy.org/] library. It contains a set of benchmarks and tests to compare the performance of Jax with respect to the standard Gammapy analysis, which is based on Numpy and Scipy.

We would like to understand how performance scales with:

  • The size of the dataset
  • The complexity of the model (number of sources)
  • Use of hardware accelerators (GPU, TPU)
  • Use of gradients of the likelihood function
  • Homogeneous vs heterogeneous datasets

Setup

To run the benchmarks in this repository you need to install the following dependencies:

mamba env create -f environment.yml
conda activate jax-gamma-ray-prototype
python prepare-test-datasets.py
python run-benchmarks.py

About

A prototype implementation for 3D gamma-ray analysis in Jax


Languages

Language:Jupyter Notebook 68.7%Language:Python 31.3%