sidsrinivasan / PyIBU

A scalable implementation of iterative Bayesian unfolding for measurement error mitigation
2 stars 1 forks source link

Tutorial: IBUreduced using vec_to_dict #2

Open miaoL1 opened 1 year ago

miaoL1 commented 1 year ago

@sidsrinivasan In the tutorial codes, probability of a IBUreduced result is shown:

image

But can vec_to_dict function, with out a given bitstrs_indexed, correctly map to the real bitstring_index?

sidsrinivasan commented 1 year ago

Thanks for catching this, I've updated the tutorial notebook to use the ibu.guess_as_dict() function instead.

miaoL1 commented 1 year ago

@sidsrinivasan Thanks for replying! However, I'm still pondering how I can obtain true bitstrings corresponding to "t_sol" from calling train function of IBUReduced. I'd appreciate it if you can explaine.

sidsrinivasan commented 1 year ago

For the moment you can get it by calling ibu._obs.exp_bitstrs, which will give you a list of bitstrings corresponding to the entries in t_sol.

I'll can make this a public attribute in my next commit.