-
Notifications
You must be signed in to change notification settings - Fork 3
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
comparison key accept callables in addition to named strings #174
Comments
Interesting suggestion, thank you! One difficulty that I see is the error propagation. Currently, we manually compute the uncertainty in the code for the comparisons we support. As a first approach, we could ask the user to provide the uncertainty in case they do not use a named string. Regarding |
you can rely on autodiffability to compute a forward or backward diff as long as the histograms are nodes in a computational graph. This part I would consider trivial and likely a timesaver as you can then do arbitrary calculations and propagate through.
Perhaps, but it would also be important to both allow multiple ratio plots as well as overlaying them on the same ratio plot. |
You are right, automatic differentiation would definitely be the way to go. I just need to think more about the case of asymmetrical uncertainties. Another thing that we will need to carefully document is that the histograms will be assumed uncorrelated. We have the named strings
Actually, |
There are many many different calculations one could put into the ratio plot, and while it's great to have the flexibility and configurability of named strings such as
comparison="pull"
, it would additional be great to have something likecomparison=lambda h1,h2: h1/h2
supported at the minimum, and one could also extend it to work for N histograms along the lines ofcomparison=lambda h1,h2,h3: (h1/h2, h2/h3)
where the return value is a histogram or an iterable of histograms to plot.The text was updated successfully, but these errors were encountered: