mirror of
https://github.com/SheffieldML/GPy.git
synced 2026-05-11 13:02:38 +02:00
fixed three tests by being _slightly_ less stringeent about poositive-definiteness
This commit is contained in:
parent
7af2d62ee6
commit
74da636245
1 changed files with 1 additions and 1 deletions
|
|
@ -568,7 +568,7 @@ class Kern_check_model(Model):
|
||||||
|
|
||||||
def is_positive_definite(self):
|
def is_positive_definite(self):
|
||||||
v = np.linalg.eig(self.kernel.K(self.X))[0]
|
v = np.linalg.eig(self.kernel.K(self.X))[0]
|
||||||
if any(v<0):
|
if any(v<-1e-6):
|
||||||
return False
|
return False
|
||||||
else:
|
else:
|
||||||
return True
|
return True
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue