HEP ML Lab (HML)
Introduction
HEP-ML-Lab is an end-to-end framework used for research combining high-energy physics phenomenology with machine learning. It covers three main parts: the generation of simulated data, the conversion of data representation, and the application of analysis approaches.
With HML, researchers can easily compare the performance between traditional methods and modern machine learning algorithms, and obtain robust and reproducible results.
To get started, please check out the documents.
Installation
pip install hep-ml-lab
Check out the install via pip for more details of prerequisites and post-installation steps or install via Docker for a hassle-free experience.
Module overview
hml.generators: API of Madgraph5 for simulating colliding events;hml.physics_objects: Physics objects classfied by their counts;hml.observables: General observables in jet physics;hml.representations: Different data structure used to represent an event;hml.datasets: Existing datasets and helper classes for creating new datasets;hml.approaches: Cuts, trees and networks for classification;hml.metrics: Metrics used in classical signal vs background analysis;
Updates
v0.4.3
- Fix the thresholds issue in
hml.metrics.MaxSignificanceby making it similar to the one returned bysklearn.metrics.roc_curve. - Change
hml.datasets.SetDataset.showto display figures usingseaborn. - Drop the requirement of
executableinhml.generators.Madgraph5.from_output.
v0.4.2
- Fix parsing cuts like "muon0.charge != muon1.charge".
- Fix inconsistent model layers in
hml.approaches.networks.SimpleCNN. - Fix registering and saving custom observables.
- Add cross sections, luminosity and weights as parameters in
hml.metrics.MaxSignificance. - Improve the figure ratio in
hml.datasets.SetDataset.show.
v0.4.1
- Fix module overview image in README.
- Fix
GradientBoostedDecisionTreeto be compatible with differentsklearnversions. - Fix
hml.datasets.SetDataset.showto display the correct rows and columns. - Rename the
parseandregisterfunctions toparse_physics_object,parse_observable, andregister_observable. - Update the installation document.
v0.4.0
This version refactors most of the codebase to make it compatible with the array
(from awkward and uproot) representation of the data.
v0.3.0.1
- Fix a bug that Madgraph5 may run into an infinite loop caused by HML keeping removing py.py file during initialization.
- Fix nan value not implemented in Fileter.
- Fix the wrong order of runs when using
hml.generators.Madgraph5.runsandhml.generators.Madgraph5.summary. - Fix the typo "g1" in quickstart.
v0.3.0
- New Madgraph5 API now is closer to the original Madgraph5 CLI.
- New Observable parsing system makes it easier to use and define new observables.
- New CutAndCout and BoostedDecisionTree in Keras style.
v0.2.2
- Change output structure of
hml.generators.Madgraph5to ensure reproducibility. - Refactor
hml.generators.Madgraph5andhml.generators.MG5Runto make them more robust.
v0.2.1
- Add
summarytohml.generators.Madgraph5to print a summary of all run. - Add
removetohml.generators.Madgraph5to remove a run. - Add
cleantohml.generators.Madgraph5to remove the output directory.
Metadata
Release files for hep-ml-lab 0.4.3
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| hep_ml_lab-0.4.3.tar.gz | 34.1 kB | Without provenance | Details for hep_ml_lab-0.4.3.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| hep_ml_lab-0.4.3-py3-none-any.whl | Python 3 | none | any | Details for hep_ml_lab-0.4.3-py3-none-any.whl |
Total release size: 81.6 kB
Release files / hep_ml_lab-0.4.3.tar.gz
| Download URL | hep_ml_lab-0.4.3.tar.gz |
|---|---|
| Size | 34.1 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
080e2a55b7b588175d860c67715554aeab9abe8f78756e4b8bd6092dad359453
|
|
BLAKE2b-256 checksum How to use checksums |
7f8ba8624631f5ba03b88679fe08b03a151ef33de5beec5f46e024566e473dc2
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/1.8.2 CPython/3.11.5 Linux/5.15.0-100-generic
|
Release files / hep_ml_lab-0.4.3-py3-none-any.whl
| Download URL | hep_ml_lab-0.4.3-py3-none-any.whl |
|---|---|
| Size | 47.5 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
3eea02222e0cf7b5087601392876401dbc8b6e23dada5c15c3f236a847e5542d
|
|
BLAKE2b-256 checksum How to use checksums |
ca3587ec8e3bfae8f152de7b03d667c4c5b6a001ad5707a39300380cbfb5d2f1
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/1.8.2 CPython/3.11.5 Linux/5.15.0-100-generic
|
Security for hep-ml-lab 0.4.3
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.