Pairwise Neural Network Classifiers with Probabilistic Outputs