# NOT RUN {
Q <- matrix(c(1,0,1,1,0,1,1,0), nrow = 2, ncol = 4)
cov <- matrix(c(.7,.3,.3,1), nrow = 2, ncol = 2)
models <- build_vae_correlated(4, 2, Q,
mean_vector = c(-0.5, 0), covariance_matrix = cov,
enc_hid_arch = c(6, 3), hid_enc_activation = c('sigmoid', 'relu'),
output_activation = 'tanh',
kl_weight = 0.1)
vae <- models[[3]]
# }
Run the code above in your browser using DataLab