
Product
Rust Support Now in Beta
Socket's Rust support is moving to Beta: all users can scan Cargo projects and generate SBOMs, including Cargo.toml-only crates, with Rust-aware supply chain checks.
A toolkit for binning / categorisation optimisation with respect to signal significance for HEP analyses, using gradient-descent methods. gatohep relies on TensorFlow with TensorFlow-Probability.
The categorisation can be performed directly in a multidimensional discriminant space, e.g. from a mutliclassifier with softmax activation. The bins are defined by learnable multidimensional Gaussians as a Gaussian Mixture Model (GMM), or, well working in 1D, using bin boundaries approximated by steep sigmoid functions of learnable position.
See the full documentation at https://gato-hep.readthedocs.io/.
git clone https://github.com/FloMau/gato-hep.git
cd gato-hep
python3 -m venv gato_env # or use conda
source gato_env/bin/activate
pip install -e .
Dependencies are declared in pyproject.toml. Note: The only tricky part is to find matching versions of tensorflow, tensorflow-probability and ml-dtypes. The requirements mentioned here should work, however, other combinations may work as well.
python examples/1D_example/run_toy_example.py
python examples/three_class_softmax_example/run_example.py
Each script writes plots & a significance comparison table.
# standard GMM model for ND optimisation
from gatohep.models import gato_gmm_model
# more to be included here later on
# see ./examples for a full workflow!
gato-hep/ project root
│
├─ pyproject.toml metadata + dependencies
├─ src/gatohep/ installable Python package
│ │
│ ├─ __init__.py
│ ├─ models.py Trainable model class
│ └─ losses.py custom loss / penalty terms
│ ├─ utils.py misc helpers
│ ├─ plotting_utils.py helper plots (stacked hists, bin boundaries, ...)
│ ├─ data_generation.py toy data generators (1D / 3-class softmax)
│
└─ examples/ runnable demos
├─ 1D_example/run_example.py
└─ three_class_softmax_example/run_example.py
git checkout -b feature/xyz
black
/ isort
/ pytest
, then open a PR.FAQs
GATO: Gradient-based categorization optimization for HEP analyses
We found that gato-hep demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Product
Socket's Rust support is moving to Beta: all users can scan Cargo projects and generate SBOMs, including Cargo.toml-only crates, with Rust-aware supply chain checks.
Product
Socket Fix 2.0 brings targeted CVE remediation, smarter upgrade planning, and broader ecosystem support to help developers get to zero alerts.
Security News
Socket CEO Feross Aboukhadijeh joins Risky Business Weekly to unpack recent npm phishing attacks, their limited impact, and the risks if attackers get smarter.