Example #1
0
File: gp.py Project: 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".')
Example #2
0
    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".')
Example #3
0
File: gp.py Project: Comy/pyGPs
 def useLaplace_FITC(self):
     """use Laplace approxiamation other than EP"""
     self.inffunc = inf.FITC_Laplace()