def query_model(self): if flip(0.9): self.a = beta(1, 5) else: self.a = 0.7 self.b = flip(self.a)
def sample(self): global a, b return beta(a, b)