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).

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.4.0.tar.gz (32.6 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.4.0-py3-none-any.whl (30.9 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: eventdisplay_ml-0.4.0.tar.gz
  • Upload date:
  • Size: 32.6 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.4.0.tar.gz
Algorithm Hash digest
SHA256 c70408d8184a6b09961ef17ff92ccaadc80754a578899414f5036388858331a8
MD5 0e40ba0692b71dbdc050979a9367e466
BLAKE2b-256 22059bfa84e7f4d94c813eec4288634b7fe659088f5a814905dbceb2422811b9

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for eventdisplay_ml-0.4.0-py3-none-any.whl
Algorithm Hash digest
SHA256 b956fffb24fd520d66b2977c3545b727d84912fc4be0682268e9f07e8e2046ea
MD5 b6dd4c274580d55a9654bd965eba32d3
BLAKE2b-256 8eceae2e26132f999fe23d6fafac0c3ad8aae92f6d3b0fd58cfeccdd14cd009b

See more details on using hashes here.

Provenance

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