Saving result from mle fit #2048
-
Dear pyhf members, result, result_obj = pyhf.infer.mle.fixed_poi_fit(0.0, data, model, return_uncertainties=True, return_result_obj=True)
retval = [result[:,0],result[:,1],result_obj.corr,float(sys.argv[2])]
pickle.dump(retval, open("Bonly.pkl","wb")) I do get a list of post-fit values when I print the contents of the Thanks! |
Beta Was this translation helpful? Give feedback.
Answered by
alexander-held
Oct 20, 2022
Replies: 1 comment 5 replies
-
I have not tried this, but I guess you could add |
Beta Was this translation helpful? Give feedback.
5 replies
Answer selected by
ssaha1234
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I have not tried this, but I guess you could add
model.config.par_names
to yourretval
list to get those labels also saved?