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