Skip to main content

GammaLearn

Deep Learning for Imaging Cherenkov Telescopes Data Analysis.

GammaLearn is a collaborative project to apply deep learning to the analysis of low-level Imaging Atmospheric Cherenkov Telescopes such as CTA. It provides a framework to easily train and apply models from a configuration file.

DOI

pipeline status

Table of Contents

  1. Implementation
  2. Usage
  3. Contributing
  4. [Cite Us](#cite us)
  5. License

Implementation

Dependencies

  • PyTorch (>= 1.7)
  • Numpy
  • PyTables
  • Matplotlib
  • scikit-image
  • PyTorch Lightning (>=1.4.6)
  • TensorBoard
  • IndexedConv (>=1.3)
  • ctapipe
  • dl1-data-handler
  • lstchain (~0.7)
  • torch-tb-profiler

Installation procedure

We recommend the use of Anaconda with Python 3.8.

Create the environment:

VERSION=0.8
wget https://gitlab.in2p3.fr/gammalearn/gammalearn/-/raw/v${VERSION}/environment.yml -O glearn_${VERSION}_env.yml
conda install mamba -n base -c conda-forge
mamba env create -f glearn_${VERSION}_env.yml
conda activate glearn

Note for OSX and/or no-gpu users: please edit the environment file to remove cudatoolkit from the dependencies.

Install GammaLearn

  • with pip (recommended for users)
pip install gammalearn==$VERSION
  • or from source (for developpers):
git clone --depth 1 https://gitlab.in2p3.fr/gammalearn/gammalearn
cd gammalearn
pip install .

Usage

First activate your conda environment

To run an experiment

gammalearn path_to_your_experiment_settings_file.py

you can find an example of setting file in https://gitlab.lapp.in2p3.fr/GammaLearn/GammaLearn/-/tree/master/examples and some sample data in https://lapp-gitlab.in2p3.fr/GammaLearn/GammaLearn/share/data

To visualise the results from your experiment, GammaLearn integrates with GammaBoard that provides high-level metrics and plots to assess IACTs reconstruction performances

To visualise the convolution kernels of your trained network (experimental feature)

gexplore-net path_to_your_experiments experiment_name checkpoint_version

Contributing

Contributions are very much welcome.
Open an issue to first discuss potential changes/additions.

Cite Us

Please cite

Jacquemont M, Vuillaume T, Benoit A, Maurin G, Lambert P, Lamanna G, Brill A. GammaLearn: A Deep Learning Framework for IACT Data. In36th International Cosmic Ray Conference (ICRC2019) 2019 Jul (Vol. 36, p. 705). DOI: https://doi.org/10.22323/1.358.0705

For reproducibility purposes, please also cite the exact version of GammaLearn you used by citing the corresponding DOI on Zenodo:

  • Version 0.7.4: DOI

License

MIT License

Copyright (c), 2018, GammaLearn

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

Back to top

Metadata

Release files for gammalearn 0.12.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for gammalearn 0.12.0
File Size Uploaded Provenance Actions
Gammalearn-0.12.0.tar.gz 3.7 MB Without provenance Details for Gammalearn-0.12.0.tar.gz

Release files / Gammalearn-0.12.0.tar.gz

Download URL Gammalearn-0.12.0.tar.gz
Size 3.7 MB
Tags Source
SHA-256 checksum
How to use checksums
7abbd0943a387f4d18503e52548cd31baa73a9996a1175937a5a87fd2c2a23ba
BLAKE2b-256 checksum
How to use checksums
a116a96a16de609415f199829f66308a1110ea3e86eeae824073a32c15920c9c
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.8.18

Security for gammalearn 0.12.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page