(labels, pred_scores)
return regression_metric.R2Score().compute(labels, pred_scores)
Compute R^2 (coefficient of determination) score
        Parameters
        ----------
        labels: value list. The labels of data set.
        pred_scores: value list. The predict results of model. It should be corresponding to labels each data.
        Returns
        ----------
        float
            The R^2 score
Compute R^2 (coefficient of determination) score
        Parameters
        ----------
        labels: value list. The labels of data set.
        pred_scores: value list. The predict results of model. It should be corresponding to labels each data.
        Returns
        ----------
        float
            The R^2 score
Compute R^2 ( coefficient of determination ) score Parameters ---------- labels : value list . The labels of data set . pred_scores : value list . The predict results of model . It should be corresponding to labels each data . Returns ---------- float The R^2 score
def r2_score(labels, pred_scores):
        """
        Compute R^2 (coefficient of determination) score
        Parameters
        ----------
        labels: value list. The labels of data set.
        pred_scores: value list. The predict results of model. It should be corresponding to labels each data.
        Returns
        ----------
        float
            The R^2 score
        """
        return regression_metric.R2Score().compute(labels, pred_scores)
def r2_score ( labels , pred_scores ) : return regression_metric . R2Score ( ) . compute ( labels , pred_scores )