SMS dit: Unsupervised learning and continual learning in neural networks