-
Notifications
You must be signed in to change notification settings - Fork 129
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
coffea interface with pyhf - statistical inference #104
Comments
There's a couple of ways one could approach this:
|
@guitargeek So the discussion should sorta start here. I am thinking along this direction because we are not going to convince anyone to use a specific stats tool but we can convince people to write things in a way that lets them use any stats tool. Especially if we make that way of describing a model such that you can turn it into any stats tool easy and/or expressive
I'm sort of assuming this is all in python so we have easy access to how functions are composed, so that we can straightforwardly, for instance, write something in PyROOT RooFit, take it apart and reassemble it into PyHF, zfitter, combine, sklearn or whatever we decide to make backends for. While this may seem a little silly at first (why not just write your fit in a given stats tool after all), I think we can arrive at something with this where we have a highly portable description of a fit and when something new and cool gets made to fit things with we/someone just supply a new backend and people can happily fit away. What do you think? |
@jpivarski if you have anything to add here it'd be super useful for discussion as well! |
We talked about this yesterday and I thought the "uniform interface to fitters" idea was a good one, particularly if you're targeting large projects like TensorFlow. If you're thinking specifically of HistFitter-style fits, then I'm beginning to think it would be better to defer to pyhf JSON, because that JSON format was intended to be implementation-independent, after all. Is the scope of what you're considering broader than the scope of what pyhf is already standardizing? This could morph into a project of linking histogram-booking with pyhf models... |
I came across this old issue and wanted to add a bit of information based on progress in the last two years.
The
The challenge with that approach is that the information about how HistFactory channels-samples-systematics interact with each other is not known to |
/cc @matthewfeickert @lukasheinrich
Is your feature request related to a problem? Please describe.
Feature request.
Describe the solution you'd like
An interface/way to export to the pyhf JSONs to perform binned statistical fits (should work for anything that allows you to make histograms basically). The pyhf workspaces follow the schema (v1.0.0) defined here: https://diana-hep.org/pyhf/schemas/1.0.0/workspace.json. If you see this issue in the future, we might be at a later version of the schema.
Describe alternatives you've considered
None.
Additional context
A similar issue is on-going to get pyhf and zfit working together as pyhf is binned, but zfit is unbinned: zfit/zfit#120.
The text was updated successfully, but these errors were encountered: