Skip to content

Commit 1aede41

Browse files
committed
Correct ELBO
1 parent 164f20d commit 1aede41

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

R/mfairELBO.R

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ getELBO <- function(Y, object, obs_indices = NULL) {
3737
) -
3838
projSparse(
3939
tcrossprod(as.matrix(mu_sq), as.matrix(nu_sq)), obs_indices
40-
))
40+
)) / 2
4141
} else {
4242
elbo2 <- -tau * sum(
4343
(Y - tcrossprod(as.matrix(mu), as.matrix(nu)))^2 +

0 commit comments

Comments
 (0)