Skip to main content

Differentiable versions of common operations in high-energy physics.

Project description

relaxed

Actions Status codecov Code style: black PyPI version PyPI platforms Documentation Status

Provides differentiable ("relaxed") versions of common operations in high-energy physics. Based on jax. Where possible, function APIs try to mimic their commonly used counterparts, e.g. fitting and hypothesis testing in pyhf.

Currently implemented:

Will implement:

  • smooth cuts via sigmoid
  • your favourite idea here!
    • we're maintaining a list of desired differentiable operations in list_of_operations.md (thanks to @cranmer) -- feel free to take inspiration or contribute :)

install

pip install relaxed

For use with pyhf, e.g. in a neos-type workflow, it is temporarily recommended to install pyhf using a specific branch that is designed to be differentiable with respect to model construction:

pip install git+http://github.com/scikit-hep/pyhf.git@make_difffable_model_ctor

We plan to merge this into pyhf when it's stable, and will then drop this instruction :)

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

relaxed-0.1.3.tar.gz (18.1 kB view hashes)

Uploaded Source

Built Distribution

relaxed-0.1.3-py3-none-any.whl (10.8 kB view hashes)

Uploaded Python 3

Supported by

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