Prediction as a Rule for Unsupervised Learning in Deep Neural Networks