a guest May 19th, 2019 54 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
- class BernoulliArm(object):
- def __init__(self, mu):
- self.mu = mu
- def draw(self):
- return np.random.binomial(n=1, p=self.mu)
RAW Paste Data