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.3.tar.gz
(105.9 kB
view hashes)
Built Distribution
selanneal-0.0.3-py3-none-any.whl
(10.2 kB
view hashes)
Close
Hashes for selanneal-0.0.3-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 8fb086b31f32aec49ef0092f68d7c8efd9d7ecbbf843ad68e98ee62a86443c5d |
|
MD5 | 6569881b110b79ca35b225d913acaea4 |
|
BLAKE2b-256 | dcf6d49605fdca393528470798f12737cc24a8b385eeca42105f8f2c4255e727 |