-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
9a02681
commit 00b77a5
Showing
2 changed files
with
33 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
pyhf | ||
======================= | ||
|
||
The pure Python package `pyhf <https://pyhf.readthedocs.io/en/stable/>`_ is a statistical fitting package for high energy physics for purely binned, templated fits. It is a Python implementation of the HistFactory schema. | ||
The connection to zfit is done via the loss function, which can be created from a pyhf model. | ||
|
||
Import the module with: | ||
|
||
.. code-block:: python | ||
import zfit_physics.pyhf as zpyhf | ||
The loss function can be created from a ``data`` and a ``pdf`` model with | ||
|
||
.. code-block:: python | ||
nll = zpyhf.loss.nll_from_pyhf(data, pdf) | ||
which optionally takes already created :py:class:~`zfit.core.interfaces.ZfitParameter` as arguments. | ||
|
||
|
||
|
||
|
||
Loss | ||
++++++++++++ | ||
|
||
.. automodule:: zfit_physics.pyhf.loss | ||
:members: | ||
:undoc-members: | ||
:show-inheritance: |