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
Built Distribution
File details
Details for the file selanneal-0.0.3.tar.gz
.
File metadata
- Download URL: selanneal-0.0.3.tar.gz
- Upload date:
- Size: 105.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.1 CPython/3.7.6
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | f72fc5f8040acd27473bb13275b7e59be1f3b0606f89988cdea8ccf3c8f82610 |
|
MD5 | 0fff7dfe30d202535419d4bf2316fd81 |
|
BLAKE2b-256 | ced6bba8246eac26ff099c0a2f161caf17c34d3cadfb0c3cede08df028556562 |
File details
Details for the file selanneal-0.0.3-py3-none-any.whl
.
File metadata
- Download URL: selanneal-0.0.3-py3-none-any.whl
- Upload date:
- Size: 10.2 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.1 CPython/3.7.6
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 8fb086b31f32aec49ef0092f68d7c8efd9d7ecbbf843ad68e98ee62a86443c5d |
|
MD5 | 6569881b110b79ca35b225d913acaea4 |
|
BLAKE2b-256 | dcf6d49605fdca393528470798f12737cc24a8b385eeca42105f8f2c4255e727 |