Testing log_loss and hinge_loss under THRESHOLDED_METRICS

Fixes Issue #2637