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-0.5.0.tar.gz (47.7 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-0.5.0-py3-none-any.whl (38.9 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for eventdisplay_ml-0.5.0.tar.gz
Algorithm Hash digest
SHA256 9f2062ef033f4d893cd8877bae1df0cbc3a53cb3c514e73f8b7f829bbda95196
MD5 fe20592ff6ce85a203be7ed01730393a
BLAKE2b-256 2c1552879bec0142b93a92c85c14197aa6559af47592b54e538ac410fce3d780

See more details on using hashes here.

Provenance

The following attestation bundles were made for eventdisplay_ml-0.5.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-0.5.0-py3-none-any.whl.

File metadata

File hashes

Hashes for eventdisplay_ml-0.5.0-py3-none-any.whl
Algorithm Hash digest
SHA256 86b83dd19f47b68f59748d5d134f0ed711eb5f7f2554b0ef4d8163f5f3c2f0cb
MD5 62212a2f59cd26b6c74009542e6168e1
BLAKE2b-256 b7e3e53920e0e3493ddb1c3b1b42a256e3693e32685d57fda81680e8d01eaffd

See more details on using hashes here.

Provenance

The following attestation bundles were made for eventdisplay_ml-0.5.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