There are currently two mostly redundant implementations in svm_train and BinaryClassificationSVM (where it's used for probability estimates)