Пример #1
0
 def updateExpectations(self):
     self.value = 2 * lambdafn(
         self.markov_blanket["Y"].getParameters()["zeta"])
Пример #2
0
 def updateExpectations(self):
     self.E = (2. * self.obs - 1.) / (4. * lambdafn(self.params["zeta"]))
     self.means = self.E.mean(axis=0).data
     self.E -= self.means
Пример #3
0
    def updateExpectations(self):
        self.E = (2. * self.obs - 1.) / (4. * lambdafn(self.params["zeta"]))

        # regress out feature-wise mean from the pseudodata
        self.means = self.E.mean(axis=0).data
        self.E -= self.means