Understanding Diversity based Pruning of Neural Networks -- Statistical Mechanical Analysis