def score(self, X, y, sample_weight=None):

        from .metrics import r2_score
        return r2_score(y, self.predict(X), sample_weight=sample_weight,
                        multioutput='variance_weighted')


###############################################################################
Returns the coefficient of determination R^2 of the prediction.
dataset/ETHPy150Open scikit-learn/scikit-learn/sklearn/base.py/RegressorMixin.score