コード例 #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".')