-
Notifications
You must be signed in to change notification settings - Fork 10
Example bump #32
base: master
Are you sure you want to change the base?
Example bump #32
Conversation
Details: - factorize the code in well-defined functions - add docstrings explaining what I am doing - rewrite most of this script. Now plotting and using the resulting histograms as bins/counts that can be used for the unfolding. - compute normalized response matrix - add plotting functions
Details: two separate logic steps: generate the pseudo-data, and then unfold. The pseudo-data can come either from the json file, or be generated.
Details: complaining about template. I thought it wasn't needed anymore. Need to ask clement and Francesco about it.
I think the problem is that your branch is not in sync with the master. Could you try to fast-forward it to get that latest developments? A working example is tests/priors/runPriors.py |
Details: - factorize the code in well-defined functions - add docstrings explaining what I am doing - rewrite most of this script. Now plotting and using the resulting histograms as bins/counts that can be used for the unfolding. - compute normalized response matrix - add plotting functions
Details: two separate logic steps: generate the pseudo-data, and then unfold. The pseudo-data can come either from the json file, or be generated.
Details: complaining about template. I thought it wasn't needed anymore. Need to ask clement and Francesco about it.
Details: - factorize the code in well-defined functions - add docstrings explaining what I am doing - rewrite most of this script. Now plotting and using the resulting histograms as bins/counts that can be used for the unfolding. - compute normalized response matrix - add plotting functions
Details: two separate logic steps: generate the pseudo-data, and then unfold. The pseudo-data can come either from the json file, or be generated.
Details: complaining about template. I thought it wasn't needed anymore. Need to ask clement and Francesco about it.
Details: the vertical axis of the histo provided by histogram2d is reversed (see http://docs.scipy.org/doc/numpy/reference/generated/numpy.histogram2d.html)
Conflicts: python/generate_bump.py python/utils.py
Hi,
Have you seen it before? it also seems to be quite slow...can you please try to run my example and tell me whether you see anything obviously wrong? Thanks! |
Ciao, I'm not surprised it takes so long, you are doing a 50-dimensional sampling! You might want to try a coarser binning. Unrelated, would it be possible grouping all the test and example files in the test directory (or in a "example" directory). I would prefer to have only FBU code in the main directory (whatever we will call it). |
Hi Davide, I see you want to merge this branch with the master, but now your "cleanup" branch has been merged to master, I'm afraid you will have some conflicts to solve first |
Hi, I made some progress (now it runs), but I am getting nonsense. |
Hi Davide, sorry for the late answer. |
Details: when computing p(r|t), there can be bins without any reconstructed events. Protect against divide by zero.
This is still a work in progress, but I need some input, so I am using a pull request to discuss the code.
I do not understand how to use the new setup: I thought that the 'model' and template were not needed anymore, but it complains with an
AssertionError: A template is required
.Do you have a working example?
Also, I have two comments/suggestions for
pyFBU
:nreco*[0.]
andntruth*[0.]
Please let me know what you think.
Thanks
Davide