mirror of
https://github.com/SheffieldML/GPy.git
synced 2026-05-08 03:22:38 +02:00
fixing the logexp (with MZ) and some stability issue in the stationary class
This commit is contained in:
parent
22dafabca2
commit
01271e3868
2 changed files with 7 additions and 12 deletions
|
|
@ -152,12 +152,7 @@ class Stationary(Kern):
|
|||
This term appears in derviatives.
|
||||
"""
|
||||
dist = self._scaled_dist(X, X2).copy()
|
||||
if X2 is None:
|
||||
nondiag = util.diag.offdiag_view(dist)
|
||||
nondiag[:] = 1./nondiag
|
||||
return dist
|
||||
else:
|
||||
return 1./np.where(dist != 0., dist, np.inf)
|
||||
return 1./np.where(dist != 0., dist, np.inf)
|
||||
|
||||
def gradients_X(self, dL_dK, X, X2=None):
|
||||
"""
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue