Disentangling Factors of Variation via Generative Entangling