Skip to content

Commit

Permalink
Merge pull request #16 from AaltoML/develop
Browse files Browse the repository at this point in the history
Sparse EP with multi-dimensional x
  • Loading branch information
asolin authored Dec 19, 2022
2 parents 02eecea + cdd257d commit 77a9a53
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion bayesnewton/ops.py
Original file line number Diff line number Diff line change
Expand Up @@ -149,7 +149,7 @@ def sparse_conditional_post_to_data(kernel, post_mean, post_cov, X, Z):
mean: posterior mean [N, 1]
covariance: posterior covariance [N, N]
"""
X = X.reshape(X.shape[0], -1)
X = X.reshape(-1, Z.shape[1])
Kff = kernel(X, X)
Kuf = kernel(Z, X)
Kuu = kernel(Z, Z)
Expand Down

0 comments on commit 77a9a53

Please sign in to comment.