pat-s / measures

5 stars 2 forks source link

Define a Measure object with derivative??? #2

Open giuseppec opened 6 years ago

giuseppec commented 6 years ago

mboost, xgboost etc. sometimes require a loss function + its gradient. If we define a Measures object we probably can add an (optional) slot that contains the gradient so that other packages such as mboost, xgboost can use it???

PhilippPro commented 6 years ago

But this has to be a function, at least for xgboost, no? Maybe just define a new function (e.g. ACCGradient) which returns a list consisting of gradient and second order gradient for the specific measure, and then it can be used for xgboost?