示例#1
0
文件: gp.py 项目: jarandacu/Mytest
    def useLikelihood(self, newLik):
        '''
        Use another likelihood function other than default Gaussian likelihood.

        :param str newLik: 'Laplace'
        '''
        if newLik == "Laplace":
            self.likfunc = lik.Laplace()
            self.inffunc = inf.EP()
        else:
            raise Exception('Possible lik values are "Laplace".')
示例#2
0
 def useLikelihood(self, newLik):
     if newLik == "Laplace":
         self.likfunc = lik.Laplace()
         self.inffunc = inf.EP()
     else:
         raise Exception('Possible lik values are "Laplace".')