示例#1
0
    def query_model(self):
        if flip(0.9):
            self.a = beta(1, 5)
        else:
            self.a = 0.7

        self.b = flip(self.a)
示例#2
0
    def query_model(self):
        if flip(0.9):
            self.a = beta(1, 5)
        else:
            self.a = 0.7

        self.b = flip(self.a)
示例#3
0
文件: beta2.py 项目: jhamrick/pystoch
 def sample(self):
     global a, b
     return beta(a, b)
示例#4
0
 def sample(self):
     global a, b
     return beta(a, b)