Skip to main content

package to run the New Physics Learning Machine (NPLM) algorithm.

Project description

NPLM_package

a package to implement the New Physics Learning Machine (NPLM) algorithm

Short description:

NPLM is a strategy to detect data departures from a given reference model, with no prior bias on the nature of the new physics model responsible for the discrepancy. The method employs neural networks, leveraging their virtues as flexible function approximants, but builds its foundations directly on the canonical likelihood-ratio approach to hypothesis testing. The algorithm compares observations with an auxiliary set of reference-distributed events, possibly obtained with a Monte Carlo event generator. It returns a p-value, which measures the compatibility of the reference model with the data. It also identifies the most discrepant phase-space region of the dataset, to be selected for further investigation. Imperfections due to mis-modelling in the reference dataset can be taken into account straightforwardly as nuisance parameters.

Related works:

  • "Learning New Physics from a Machine" (Phys. Rev. D)
  • "Learning Multivariate New Physics" (Eur. Phys. J. C)
  • "Learning New Physics from an Imperfect Machine" (arXiv)

Envirnoment set up:

Create a virtual environment with the packages specified in requirements.txt

python3 -m venv env
source env/bin/activate

to be sure that pip is up to date

pip install --upgrade pip

install the packaes listed in requirements.txt

pip install -r requirements.txt 

to see what you installed (check if successful)

pip freeze

Now you are ready to download the NPLM package:

pip install -i https://test.pypi.org/simple/ NPLM

Example: 1D toy model

To understand how NPLM works see the 1D example in example_1D

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

NPLM-0.0.6.tar.gz (15.0 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

NPLM-0.0.6-py3-none-any.whl (14.7 kB view details)

Uploaded Python 3

File details

Details for the file NPLM-0.0.6.tar.gz.

File metadata

  • Download URL: NPLM-0.0.6.tar.gz
  • Upload date:
  • Size: 15.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.7.1 importlib_metadata/4.10.0 pkginfo/1.8.2 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.8.9

File hashes

Hashes for NPLM-0.0.6.tar.gz
Algorithm Hash digest
SHA256 95d27cb83c834f790bcd93dd1cefe8d07a055076945128030e290baa129b99eb
MD5 3425571512ae2403399b63e05096416c
BLAKE2b-256 667c4f86acaf51d226523b220855a8770749f5ced268ee229ffd0382f1ce312e

See more details on using hashes here.

File details

Details for the file NPLM-0.0.6-py3-none-any.whl.

File metadata

  • Download URL: NPLM-0.0.6-py3-none-any.whl
  • Upload date:
  • Size: 14.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.7.1 importlib_metadata/4.10.0 pkginfo/1.8.2 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.8.9

File hashes

Hashes for NPLM-0.0.6-py3-none-any.whl
Algorithm Hash digest
SHA256 7ae59c4a157043efbfcf48fb7bd1aa6e4ab804c3c04f65302535adb6e9156e14
MD5 467a137bc14b8c20b649ada2e19efd7f
BLAKE2b-256 918709da4473cb7b85e632d480998b71548c14302c7f06508f518942fcd67932

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page