def METHOD_NAME(self, *args):
    if hasattr(self.estimator, "predict"):
        y_pred = self.estimator.predict(self.X)
    else:
        y_pred = None
    return float(self.train_scorer(self.y, y_pred))