Skip to content

Commit

Permalink
fix typo
Browse files Browse the repository at this point in the history
  • Loading branch information
PFLeget committed May 16, 2024
1 parent c1bb047 commit a3d5eb8
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions treegp/gp_interp.py
Original file line number Diff line number Diff line change
Expand Up @@ -179,6 +179,8 @@ def return_gp_predict(self, y, X1, X2, kernel, y_err, return_cov=False):
self._alpha = cho_solve(factor, y, overwrite_b=False)
y_predict = np.dot(HT, self._alpha.reshape((len(self._alpha), 1))).T[0]
if return_cov:
if self._alpha is not None:
K = kernel.__call__(X1) + np.eye(len(y)) * y_err**2
fact = cholesky(
K, lower=True
) # I am computing maybe twice the same things...
Expand Down

0 comments on commit a3d5eb8

Please sign in to comment.