Named loss functions similar to scikit-learn instead of R gbm package.