Structured Variational Autoencoders for the Beta-Bernoulli Process