Learning a Continuous Hidden Variable Model for Binary Data