A Python implementation of the Replicated Softmax model.