Skip to content

Commit

Permalink
docs: Add v0.6.0 release notes (#1314)
Browse files Browse the repository at this point in the history
* Add release notes for v0.6.0
* Update ROADMAP to note discovery test statistic support added
  • Loading branch information
matthewfeickert authored Feb 16, 2021
1 parent d3edc3e commit c6b060d
Show file tree
Hide file tree
Showing 4 changed files with 145 additions and 2 deletions.
4 changes: 2 additions & 2 deletions docs/governance/ROADMAP.rst
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ Roadmap
- |check| Write submission to `JOSS <https://joss.theoj.org/>`__ (Issue
#502) and write submission to
`pyOpenSci <https://www.pyopensci.org/>`__ [2019-Q4 → 2020-Q2]
- |uncheck| Contribute to `IRIS-HEP Analysis Systems
- |check| Contribute to `IRIS-HEP Analysis Systems
Milestones <https://docs.google.com/spreadsheets/d/1VKpHlQWXu_p8AUv5E5H_BzqF_i7hh2Z-Id0XPwNHu8o/edit#gid=1864915304>`__
"`Initial roadmap for ecosystem
coherency <https://github.com/iris-hep/project-milestones/issues/8>`__"
Expand Down Expand Up @@ -105,7 +105,7 @@ Roadmap
- |check| Add sampling with toys (PR #558) [2019-Q3]
- |uncheck| Make general modeling choices (e.g., Issue #293) [2019-Q4 →
2020-Q1]
- |uncheck| Add "discovery" test stats (p0) (PR #520) [2019-Q4 → 2020-Q1]
- |check| Add "discovery" test stats (p0) (PR #520) [2019-Q4 → 2020-Q1]
- |uncheck| Add better Model creation [2019-Q4 → 2020-Q1]
- |check| Add background model support (Issues #514, #946) [2019-Q4 → 2020-Q1]
- |check| Develop interface for the optimizers similar to tensor/backend
Expand Down
1 change: 1 addition & 0 deletions docs/release-notes.rst
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,6 @@
Release Notes
=============

.. include:: release-notes/v0.6.0.rst
.. include:: release-notes/v0.5.4.rst
.. include:: release-notes/v0.5.3.rst
2 changes: 2 additions & 0 deletions docs/release-notes/v0.5.3.rst
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,8 @@ CLI API
Contributors
------------

``v0.5.3`` benefited from contributions from:

* Karthikeyan Singaravelan

.. |release v0.5.3| replace:: ``v0.5.3``
Expand Down
140 changes: 140 additions & 0 deletions docs/release-notes/v0.6.0.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,140 @@
|release v0.6.0|_
=================

This is a minor release from ``v0.5.4`` → ``v0.6.0``.

Important Notes
---------------

* Please note this release has **API breaking changes** and carefully read these
notes while updating your code to the ``v0.6.0`` API.
Perhaps most relevant is the changes to the :func:`pyhf.infer.hypotest` API, which now
uses a ``calctype`` argument to differentiate between using an asymptotic calculator
or a toy calculator, and a ``test_stat`` kwarg to specify which test statistic
the calculator should use, with ``'qtilde'``, coresponding to
:func:`pyhf.infer.test_statistics.qmu_tilde`, now the default option.
It also relies more heavily on using kwargs to pass options through to the optimizer.
* Support for the discovery test statistic, :math:`q_{0}`, has now been added through
the :func:`pyhf.infer.test_statistics.q0` API.
* Support for pseudoexperiments (toys) has been added through the
:func:`pyhf.infer.calculators.ToyCalculator` API.
Please see the corresponding `example notebook`_ for more detailed exploration
of the API.
* The ``minuit`` extra, ``python -m pip install pyhf[minuit]``, now uses and requries
the |iminuit docs|_ ``v2.X`` release series and API.
Note that ``iminuit`` ``v2.X`` can result in slight differences in minimization
results from ``iminuit`` ``v1.X``.
* The documentation will now be versioned with releases on ReadTheDocs.
Please use `pyhf.readthedocs.io`_ to access the documentation for the latest
stable realease of ``pyhf``.
* ``pyhf`` is transtioning away from Stack Overflow to `GitHub Discussions`_ for
resolving user questions not covered in the documentation.
Please check the `GitHub Discussions`_ page to search for discussions addressing
your questions and to open up a new discussion if your question is not covered.
* ``pyhf`` has published a paper in the Journal of Open Source Software. |JOSS DOI|
Please make sure to include the paper reference in all citations of ``pyhf``, as
documented in the `Use and Citations`_ section of the documentation.

Fixes
-----

* Fix bug where all extras triggered warning for installation of the ``contrib`` extra.
* ``float``-like values are used in division for :func:`pyhf.writexml`.
* ``Model.spec`` now supports building new models from existing models.
* :math:`p`-values are now reported based on their quantiles, instead of interpolating
test statistics and converting to :math:`p`-values.
* Namespace collisions between ``uproot3`` and ``uproot``/``uproot4`` have been fixed
for the ``xmlio`` extra.
* The ``normsys`` modifier now uses the :mod:`pyhf.interpolators.code4` interpolation
method by default.
* The ``histosys`` modifier now uses the :mod:`pyhf.interpolators.code4p` interpolation
method by default.

Features
--------

Python API
~~~~~~~~~~

* The ``tensorlib`` API now supports a ``tensorlib.to_numpy`` and
``tensorlib.ravel`` API.
* The :func:`pyhf.infer.calculators.ToyCalculator` API has been added to support
pseudoexperiments (toys).
* The emperical test statistic distribution API has been added to help support the
``ToyCalculator`` API.
* Add a ``tolerance`` kwarg to the optimizer API to set a ``float`` value as a
tolerance for termination of the fit.
* The :func:`pyhf.optimize.opt_minuit.minuit_optimizer` optimizer now can return
correlations of the fitted parameters through use of the ``return_correlation``
Boolean kwarg.
* Add the ``pyhf.utils.citation`` API to get a ``str`` of the preferred BibTeX entry
for citation of the version of ``pyhf`` installed.
See the example for the CLI API for more information.
* The :func:`pyhf.infer.hypotest` API now uses a ``calctype`` argument to differentiate
between using an asymptotic calculator or a toy calculator, and a ``test_stat`` kwarg
to specify which test statistic to use.
It also relies more heavily on using kwargs to pass options through to the optimizer.
* The default ``test_stat`` kwarg for :func:`pyhf.infer.hypotest` and the calculator
APIs is ``'qtilde'``, which corresponds to the alternative test statistic
:func:`pyhf.infer.test_statistics.qmu_tilde`.
* The return type of :math:`p`-value like functions is now a 0-dimensional ``tensor``
(with shape ``()``) instead of a ``float``.
This is required to support end-to-end automatic differenation in future releases.

CLI API
~~~~~~~

* The CLI API now suppoerts a ``--citation`` or ``--cite`` option to print the
preferred BibTeX entry for citation of the version of ``pyhf`` installed.

.. code-block:: shell
$ pyhf --citation
@software{pyhf,
author = "{Heinrich, Lukas and Feickert, Matthew and Stark, Giordon}",
title = "{pyhf: v0.6.0}",
version = {0.6.0},
doi = {10.5281/zenodo.1169739},
url = {https://github.com/scikit-hep/pyhf},
}
@article{pyhf_joss,
doi = {10.21105/joss.02823},
url = {https://doi.org/10.21105/joss.02823},
year = {2021},
publisher = {The Open Journal},
volume = {6},
number = {58},
pages = {2823},
author = {Lukas Heinrich and Matthew Feickert and Giordon Stark and Kyle Cranmer},
title = {pyhf: pure-Python implementation of HistFactory statistical models},
journal = {Journal of Open Source Software}
}
Contributors
------------

``v0.6.0`` benefited from contributions from:

* Alexander Held
* Marco Gorelli
* Pradyumna Rahul K
* Eric Schanet
* Henry Schreiner

.. |release v0.6.0| replace:: ``v0.6.0``
.. _`release v0.6.0`: https://github.com/scikit-hep/pyhf/releases/tag/v0.6.0

.. _`example notebook`: https://pyhf.readthedocs.io/en/latest/examples/notebooks/toys.html

.. |iminuit docs| replace:: ``iminuit``
.. _`iminuit docs`: https://iminuit.readthedocs.io/

.. _`pyhf.readthedocs.io`: https://pyhf.readthedocs.io/

.. _`GitHub Discussions`: https://github.com/scikit-hep/pyhf/discussions

.. |JOSS DOI| image:: https://joss.theoj.org/papers/10.21105/joss.02823/status.svg
:target: https://doi.org/10.21105/joss.02823

.. _`Use and Citations`: https://pyhf.readthedocs.io/en/latest/citations.html

0 comments on commit c6b060d

Please sign in to comment.