Xgboost-How to use "mae" as objective function?

Viewed 21021

I know xgboost need first gradient and second gradient, but anybody else has used "mae" as obj function?

3 Answers

For the Huber loss above, I think the gradient is missing a negative sign upfront. Should be as

grad = - d / scale_sqrt

I am running the huber/fair metric from above on ~normally distributed Y, but for some reason with alpha <0 (and all the time for fair) the result prediction will equal to zero...

Related