Decision stump and perceptron with metrics (mlpack). Modified interface