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)
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]