mirror of
https://github.com/SheffieldML/GPy.git
synced 2026-05-18 13:55:14 +02:00
Change to criterion on positive definite check (epsilon*10 instead of epsilon).
This commit is contained in:
parent
eee597f9ab
commit
b815dd98d1
1 changed files with 1 additions and 1 deletions
|
|
@ -578,7 +578,7 @@ class Kern_check_model(Model):
|
|||
|
||||
def is_positive_definite(self):
|
||||
v = np.linalg.eig(self.kernel.K(self.X))[0]
|
||||
if any(v<-sys.float_info.epsilon):
|
||||
if any(v<-10*sys.float_info.epsilon):
|
||||
return False
|
||||
else:
|
||||
return True
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue