Exemplo n.º 1
0
 def test_ep(self,thr=1e-4):
     """ Test expectation propagation approximate inference.
     """
     im = inf.ep
     cf,mf,lf = 1.1*cov.se(ell=0.8),mean.zero(),lik.erf()
     self.run_verifications(im,cf,mf,lf,thr)
     lf = lik.gauss(sn=0.2)
     self.run_verifications(im,cf,mf,lf,thr)
     mf = 2.3*mean.one()
     self.run_verifications(im,cf,mf,lf,thr)
     cf = 1.3*cov.se(ell=[0.8,0.7,0.3])
     self.run_verifications(im,cf,mf,lf,thr)
     mf = 1.3*mean.linear(a=[0.8,0.7,0.3])
     self.run_verifications(im,cf,mf,lf,thr)
Exemplo n.º 2
0
 def test_erf(self):
     """ Verify error function likelihood.
     """
     self.run_verifications(lik.erf(), self.ybin)
Exemplo n.º 3
0
 def test_erf(self):
     """ Verify error function likelihood.
     """
     self.run_verifications(lik.erf(),self.ybin)