A loss function for classification based on a robust similarity metric
scaling learning algorithms towards ai .