def query_model(self): if flip(0.9): self.a = uniform(0, 1) else: self.a = 0.7 self.b = flip(self.a)
def sample(self): return uniform(low, high)
def query_model(self): self.val = uniform(0, 1)
def query_model(self): self.coin_weight = uniform(0, 1) self.sampled_data = [ self.coin(self.coin_weight) for i in xrange(self.num_flips) ]
def query_model(self): self.coin_weight = uniform(0, 1) self.sampled_data = [self.coin(self.coin_weight) for i in xrange(self.num_flips)]