Skip to content

Commit

Permalink
Merge pull request #454 from JaxGaussianProcesses/avoid_cg
Browse files Browse the repository at this point in the history
Quick fix to stop automatic switch to CG
  • Loading branch information
thomaspinder committed Jun 18, 2024
2 parents ad4fdac + 9049189 commit 5734eac
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion gpjax/gps.py
Original file line number Diff line number Diff line change
Expand Up @@ -532,7 +532,7 @@ def predict(
mean_t = self.prior.mean_function(t)
Ktt = self.prior.kernel.gram(t)
Kxt = self.prior.kernel.cross_covariance(x, t)
Sigma_inv_Kxt = cola.solve(Sigma, Kxt)
Sigma_inv_Kxt = cola.solve(Sigma, Kxt, Cholesky())

# μt + Ktx (Kxx + Io²)⁻¹ (y - μx)
mean = mean_t + jnp.matmul(Sigma_inv_Kxt.T, y - mx)
Expand Down

0 comments on commit 5734eac

Please sign in to comment.