Access objective function from python


#1

Dear experts,

I am trying to implement a custom objective function (focal loss) on xgboost and to make sure I got it right I would like to compare it against the normal logistic objective. How do I access the such function? Where do I find it?

Thanks!


#2

All existing objectives are implemented in C++. See https://github.com/dmlc/xgboost/blob/master/src/objective/regression_obj.cu