How to perform weighted inference

Hi @gokl , I tried sampling from posterior and I get back an empty dictionary. Is there a reason why? Your approach makes complete sense. Hence, my confusion if my implementation for posterior is incorrect.

Looking to you for advice.