GBC custom loss function

do it like:

class MyLossFunction:
  ...the three required functions...

GradientBoostingClassifier(loss='my.module.MyLossFunction')