Large Deviations for Classification Performance Analysis of Machine Learning Systems