|
| 1 | +|release v0.7.0|_ |
| 2 | +================= |
| 3 | + |
| 4 | +This is a minor release from ``v0.6.3`` → ``v0.7.0``. |
| 5 | + |
| 6 | +Important Notes |
| 7 | +--------------- |
| 8 | + |
| 9 | +* NEW IMPORTANT STUFF GOES HERE |
| 10 | +* The minimum required backend versions have been updated to support added features: |
| 11 | + |
| 12 | + - JAX backend requires ``jax>=0.2.10`` |
| 13 | + - PyTorch backend requires ``torch>=1.10.0`` |
| 14 | + - TensorFlow backend requires ``tensorflow>=2.3.1`` |
| 15 | + |
| 16 | +Fixes |
| 17 | +----- |
| 18 | + |
| 19 | +* FIXES HERE |
| 20 | + |
| 21 | +Features |
| 22 | +-------- |
| 23 | + |
| 24 | +Python API |
| 25 | +~~~~~~~~~~ |
| 26 | + |
| 27 | +* Supported options for :func:`pyhf.infer.hypotest` can now be passed as kwargs |
| 28 | + through the :func:`pyhf.infer.intervals.upperlimit` API. |
| 29 | + (PR :pr:`1613`) |
| 30 | + This now enables things like using :class:`pyhf.infer.calculators.ToyCalculator` |
| 31 | + as the calculator used for the hypothesis test scan: |
| 32 | + |
| 33 | + .. code:: pycon |
| 34 | +
|
| 35 | + >>> import numpy as np |
| 36 | + >>> import pyhf |
| 37 | + >>> pyhf.set_backend("jax") |
| 38 | + >>> model = pyhf.simplemodels.uncorrelated_background( |
| 39 | + ... signal=[12.0, 11.0], bkg=[50.0, 52.0], bkg_uncertainty=[3.0, 7.0] |
| 40 | + ... ) |
| 41 | + >>> observations = [51, 48] |
| 42 | + >>> data = pyhf.tensorlib.astensor(observations + model.config.auxdata) |
| 43 | + >>> scan = np.linspace(0, 5, 21) |
| 44 | + >>> obs_limit, exp_limits, (scan, results) = pyhf.infer.intervals.upperlimit( |
| 45 | + ... data, model, scan, return_results=True, calctype="toybased", ntoys=3000 |
| 46 | + ... ) |
| 47 | +
|
| 48 | +Contributors |
| 49 | +------------ |
| 50 | + |
| 51 | +``v0.7.0`` benefited from contributions from: |
| 52 | + |
| 53 | +* Alexander Held |
| 54 | +* Mason Proffitt |
| 55 | +* Lars Henkelmann |
| 56 | +* Aryan Roy |
| 57 | +* Graeme Watt |
| 58 | + |
| 59 | +.. |release v0.7.0| replace:: ``v0.7.0`` |
| 60 | +.. _`release v0.7.0`: https://github.com/scikit-hep/pyhf/releases/tag/v0.7.0 |
0 commit comments