A geometric statistic for deep learning model confidence and adversarial defense