Adding the gated autoencoder model and an example of how to use it.

Can you add a quick check that the results (some measure of performance) are in line with what is expected?
For instance, if you run Roland Memisevic's original code for 3 epochs as well with the same parameters on the same data, and check that the performance is roughly equivalent.