You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
# K shape: [..., n] — element-wise multiply by h1, h2 (same shape)
176
-
return (
177
-
K*h1*h2
178
-
) # pragma: no cover -- diag=True kernel-eval branch; BoTorch's posterior(...).variance computes full covariance and extracts the diagonal, never calling kernel.forward with diag=True
176
+
# ``diag=True`` kernel-eval branch; BoTorch's
177
+
# ``posterior(...).variance`` computes the full covariance
178
+
# and extracts the diagonal, so kernel.forward is never
179
+
# called with diag=True in the production fit path.
180
+
returnK*h1*h2# pragma: no cover
179
181
# K shape: [..., n1, n2]; multiply by h1[...,n1,1] and h2[...,1,n2]
Copy file name to clipboardExpand all lines: boxcrete/likelihoods.py
+23-12Lines changed: 23 additions & 12 deletions
Original file line number
Diff line number
Diff line change
@@ -128,10 +128,12 @@ def __init__(
128
128
noise_prior=None,
129
129
**kwargs,
130
130
):
131
-
if (
132
-
noise_constraintisNone
133
-
): # pragma: no cover -- production callers always pass an explicit noise_constraint via build_strength_kernel_for_aug_dim; this default-fallback path is research-only
134
-
noise_constraint=LogTransformedInterval(
131
+
ifnoise_constraintisNone:
132
+
# ``pragma: no cover`` -- production callers always pass
133
+
# an explicit ``noise_constraint`` via
134
+
# ``build_strength_kernel_for_aug_dim``; this default-
135
+
# fallback path is research-only.
136
+
noise_constraint=LogTransformedInterval( # pragma: no cover
else: # pragma: no cover -- defensive fallback; V2 fit always either passes a 2D X (training) or has _train_times set (eval) before this method is called
0 commit comments