-
Notifications
You must be signed in to change notification settings - Fork 26
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
Several changes (new LRT macro + small changes on AppLC) #89
Conversation
…use 1 deg to (backward comp).
- Added the redshift, EBL model and last parameters of "enrico_config myanalysis.conf" example.
Hi Could you please make a bit of doc for the lrt macro and some example. this will help me to understand thanks |
Hi again, another point. I test your new enrico_testmodel. I ran PL and LogParabola analysis and get different loglikelihood values with your modifications. could you check that please thanks |
Add some comments to the code, include examples in the documentation. Reeplace very long variables in testModel with shortcuts to improve readability.
Hi, I have included some documentation and examples, cleaned up a little bit the code (they were very old commits and I honestly forgot about them when I submitted the pull request ;) ). The usage of the macro is dead simple (just enrico_lrt EnricoConfigFile FileWithListOfModels). FileWithListOfModels should contain a list of models to test: You can leave some of the parameters non-fixed by writing down None as you see in this example with the normalization factor. The macro fetches the models from that FileWithListOfModels, makes the fit (it creates some pickle files to be able to reuse these fits in a later execution so that the process is speed up significantly), computes the likelihood and saves it to an output file (TestModel/TestModel.results). It should contain something like LogParabola, None, 1.571613825, 0.06406550853, -102184.111142 |
…fied' Thaw background parameters only when models are specified.
Hi, I think I found the problem. One of the changes I implemented was to 'thaw' the background parameters to give the total model a little bit more freedom. I have partially reverted it, only if the user specifies the parameters to test (i.e. by using the model_list file and enrico_lrt) the background models will be thawed. I also commented (for now) the pickling of the existing fit results, as I have noticed that the behaviour is not reproducible (results differ between the 'clean' execution and the 'recovered fit' one). I need to think a way to speed up the process (if one wants to connect this tool with external fitting tools that would work on other experiments to compute a combined likelihood). |
Hi, I am not sure that this lines in the function RunAFit are good. To me, you have to leave the parameters free to make a comparison I will have a look at the doc cheers |
With this I was trying to see how much can the likelihood be speed up (this 2016-04-22 5:40 GMT-04:00 davidsanchez notifications@github.com:
|
Could you remove them and change your pull request thanks |
Done! Sorry for noticing this before! |
thanks a lot |
Add a macro that computes the 'likelihood' for a given model