multidimensional selection optimisation with simulated annealing
Project description
selanneal
Selanneal is a simple package for optimising multivariate selections via a figure of merit. The optimisation is performed for all given features simultaneously by utilising the simulated annealing method. It relies on numba for just-in-time compilation of the algorithm. The procedure works on binned data, so an n-dimensional histogram needs to be provided.
Currently, two modes of operation exist:
- edges: cut only the edges of each feature (results in "rectangular cuts")
- bins: select individual bins from a grid (for now limited to 2 feature dimensions)
This package was written for applications in high energy physics but can apply to general problems in statistical data analysis.
usage
- install with
python3 -m pip install selanneal
- tutorial notebooks for basic usage in examples
- training data is to be provided as numpy arrays representing the histogrammed number of signal and background events
- hyper-parameters to tune the optimisation:
- the implemented figure of merit is
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
selanneal-0.0.2.tar.gz
(101.6 kB
view hashes)
Built Distribution
Close
Hashes for selanneal-0.0.2-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | b20ed088e8b3cd6669934c6da94f6e93e03bb3b71c509456a33eb2c2468e701b |
|
MD5 | 3ac99a76f5e67b7168d4fdef8d2d4611 |
|
BLAKE2b-256 | 0c245b87242b1fd764627860a1f2508974bd4b39ae0e5c8d005e45987e6722ff |