예제 #1
0
 def dnlml(self, hypInArray, inffunc, meanfunc, covfunc, likfunc, x, y):
     self.apply_in_objects(hypInArray, meanfunc, covfunc, likfunc)
     result = gp.analyze(inffunc, meanfunc, covfunc, likfunc, x, y, der=True)
     dnlml_List = result[1].mean + result[1].cov + result[1].lik
     return np.array(dnlml_List)
예제 #2
0
 def nlml(self, hypInArray, inffunc, meanfunc, covfunc, likfunc, x, y):
     self.apply_in_objects(hypInArray, meanfunc, covfunc, likfunc)
     result = gp.analyze(inffunc, meanfunc, covfunc, likfunc, x, y, der=False)
     return result[0]