示例#1
0
文件: gp.py 项目: Comy/pyGPs
 def useInference(self, newInf):
     if newInf == "Laplace":
         self.inffunc = inf.FITC_Laplace()
     elif newInf == "EP":
         self.inffunc = inf.FITC_EP()
     else:
         raise Exception('Possible inf values are "Laplace", "EP".')
示例#2
0
文件: gp.py 项目: jarandacu/Mytest
    def useInference(self, newInf):
        '''
        Use another inference techinique other than default exact inference.

        :param str newInf: 'Laplace' or 'EP'
        '''
        if newInf == "Laplace":
            self.inffunc = inf.FITC_Laplace()
        else:
            raise Exception('Possible inf values are "Laplace".')
示例#3
0
文件: gp.py 项目: Comy/pyGPs
 def useLaplace_FITC(self):
     """use Laplace approxiamation other than EP"""
     self.inffunc = inf.FITC_Laplace()