class_docstr: Unit test for posterior sampling with Bernoulli likelihood and Beta prior
class_docstr_tok: ["Unit","test","for","posterior","sampling","with","Bernoulli","likelihood","and","Beta","prior"]
docstr: Sets up unit tests. 
docstr_tok: ["Sets","up","unit","tests","."]
code: def setUp(self):
      """Sets up unit tests."""
      self.size = 10000
      self.n = 1000
      self.threshold = 0.1
      self.alpha = 2
      self.beta = 3
      self.data = np.random.binomial(1, 0.6, self.n)
      self.Y = np.sum(self.data)
      self.prior = Beta(self.alpha, self.beta)
  
file_path: dragonfly/dragonfly/distributions/unittest_posterior_mixed.py
imports: from __future__ import absolute_import
  from __future__ import division
  import unittest
  import numpy
  from .continuous import Beta
  from .model import Model
  from ..utils.base_test_class import BaseTestClass, execute_tests
label_desc: Use image node_id 1 for calling the PosteriorMixedTestCase obj's underlying member method code with example usage: obj.setUp() without return types