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".')
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".')
def useLaplace_FITC(self): """use Laplace approxiamation other than EP""" self.inffunc = inf.FITC_Laplace()