The python implementation of this objective function, meeting the requirements of Fresa which are to return the objective function value and the violation of constraints, follows: ...
I tried a custom ranking objective function for LGBMRanker but LGBMRanker does not call the custom loss function with the group argument, which is mandatory for learning to rank. import lightgbm as ...