Skip to content

Commit

Permalink
Update pf.py
Browse files Browse the repository at this point in the history
  • Loading branch information
yiwang12 authored Oct 9, 2024
1 parent 9923f1e commit 1f91c15
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion mNSF/NSF/pf.py
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,7 @@ def __init__(self, J, L, Z, lik="poi", chol = True, X=None, psd_kernel=tfk.Mater
self.Kuf = kernel.matrix(self.Z, X) #LxMxN
self.alpha_x = tfl.cholesky_solve(self.Kuu_chol, self.Kuf) #LxMxN
Kff_diag = kernel.apply(X, X, example_ndims=1)+self.nugget #LxN

mu_z = self.get_mu_z()
mu_tilde = mu_x + tfl.matvec(self.alpha_x, self.delta-mu_z, transpose_a=True) #LxN
#compute the alpha(x_i)'(K_uu-Omega)alpha(x_i) term
self.a_t_Kchol = tfl.matmul(self.alpha_x, self.Kuu_chol, transpose_a=True) #LxNxM
Expand Down

0 comments on commit 1f91c15

Please sign in to comment.