Skip to main content

A machine learning toolkit for Eventdisplay

Project description

Machine learning for Eventdisplay

LICENSE release pypi DOI

Toolkit to interface and run machine learning methods together with the Eventdisplay software package for gamma-ray astronomy data analysis.

Provides examples on how to use e.g., scikit-learn or XGBoost regression trees to estimate event direction, energies, and gamma/hadron separators.

Introduces a Python environment and a scripts directory to support training and inference.

Input is provided through the mscw output (data trees).

Direction and energy reconstruction using XGBoost

Stereo analysis methods implemented in Eventdisplay provide direction / energies per event resp telescope image. The machine learner implemented Eventdisplay-ML uses XGB Boost regression trees. Features are all estimators (e.g. DispBDT or intersection method results) plus additional features (mostly image parameters) to get a better estimator for directions and energies.

Output is a single ROOT tree called StereoAnalysis with the same number of events as the input tree.

Gamma/hadron separation using XGBoost

Gamma/hadron separation is performed using XGB Boost classification trees. Features are image parameters and stereo reconstruction parameters provided by Eventdisplay. Training is performed in overlapping energy bins to account for energy dependence of the classification. The zenith angle dependence is accounted for by including the zenith angle as a binned feature in the training.

Output is a single ROOT tree called Classification with the same number of events as the input tree. It contains the classification prediction (Gamma_Prediction) and boolean flags (e.g. Is_Gamma_75 for 75% signal efficiency cut).

Generative AI disclosure

Generative AI tools (including Claude, ChatGPT, and Gemini) were used to assist with code development, debugging, and documentation drafting. All AI-assisted outputs were reviewed, validated, and, where necessary, modified by the authors to ensure accuracy and reliability.

Citing this Software

Please cite this software if it is used for a publication, see the Zenodo record and CITATION.cff for details.

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

eventdisplay_ml-1.0.0.tar.gz (48.0 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

eventdisplay_ml-1.0.0-py3-none-any.whl (38.9 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: eventdisplay_ml-1.0.0.tar.gz
  • Upload date:
  • Size: 48.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for eventdisplay_ml-1.0.0.tar.gz
Algorithm Hash digest
SHA256 b9418903aac395d128548959af22653890d92d91fb5d008354131a9c19dfe301
MD5 87e39b0c149a8df6063f51b4527899bc
BLAKE2b-256 ee38be3d6f0ff696be1a4dd773497b512cee14f92afb813d6c4b48910924f58d

See more details on using hashes here.

Provenance

The following attestation bundles were made for eventdisplay_ml-1.0.0.tar.gz:

Publisher: pypi.yml on Eventdisplay/Eventdisplay-ML

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

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

File metadata

File hashes

Hashes for eventdisplay_ml-1.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 1a1925ba2093f9e20b75170681f1c38dd715ff8372ecb908d045123218f53823
MD5 c358ea0acc52858424e034f94cbf9cdb
BLAKE2b-256 00cf14117d2de99cc961b88942816e86e816eb6bad1bd75a541876372f603951

See more details on using hashes here.

Provenance

The following attestation bundles were made for eventdisplay_ml-1.0.0-py3-none-any.whl:

Publisher: pypi.yml on Eventdisplay/Eventdisplay-ML

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page