-
Hi all, I'm currently setting up a fit with 5 templates/samples. I included as a PoI a However, what I actually want to do is use a
When I build my model with
With a I tried to remove this line from pdf.py but then this causes other errors when running the MLE fit. Therefore, it seems that this requirement is important. What am I missing exactly here ? Is there anything specific that needs to be added to the pyhf spec when considering data-driven shapes ? Or is this due to some know issue ? Thank you for your help. |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 6 replies
-
Hiya, so note that in |
Beta Was this translation helpful? Give feedback.
-
It turns out that the problem came from empty bins (obviously a problem when trying to rescale from 0). I avoided the issue by using fewer but larger bins. In some cases I think it can also be fixed by adding a small positive epsilon to those empty bins but this might create other problems such as very large scaling factors (or hitting the boundary). In my case the minimisation still failed with this strategy. I just write this here in case any one else stumbles upon this problem. |
Beta Was this translation helpful? Give feedback.
-
@TommyDESY This is now guarded against in |
Beta Was this translation helpful? Give feedback.
It turns out that the problem came from empty bins (obviously a problem when trying to rescale from 0). I avoided the issue by using fewer but larger bins.
In some cases I think it can also be fixed by adding a small positive epsilon to those empty bins but this might create other problems such as very large scaling factors (or hitting the boundary). In my case the minimisation still failed with this strategy.
I just write this here in case any one else stumbles upon this problem.