Utilities to train and validate classifiers based on pair switching using the K-Top-Scoring-Pair (KTSP) algorithm