Theoretical characterization of uncertainty in high-dimensional linear classification