r2_score_fitted

mastml.metrics.r2_score_fitted(y_true, y_pred)[source]

Method that calculates the R^2 value

Args:

y_true: (numpy array), array of true y data values

y_pred: (numpy array), array of predicted y data values

Returns:

(float): score of R^2