Skip to content

Commit

Permalink
fix covariance quantification of sparse FunctionEstimator with full p…
Browse files Browse the repository at this point in the history
…rior covariance matrix
  • Loading branch information
katosh committed Dec 11, 2024
1 parent eb20472 commit 30aefa4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions mellon/conditional.py
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ def update_diag(i, ycf, val):
return y_cov_factor


def _process_sigma(sigma, r, A):
def _process_sigma(sigma, r, A, jitter=DEFAULT_JITTER):
"""
Helper function to interpret and process sigma based on its shape and the shape of r.
Expand Down Expand Up @@ -331,7 +331,7 @@ def __init__(
if y_is_mean:
r_l, A_l = r, A
else:
r_l, A_l = _process_sigma(sigma, r, A)
r_l, A_l = _process_sigma(sigma, r, A, jitter=jitter)
LBB = stabilize(dot(A_l, A.T), 1)
L_B = cholesky(LBB)

Expand Down

0 comments on commit 30aefa4

Please sign in to comment.