Method that calculates the R^2 value
y_true: (numpy array), array of true y data values
y_pred: (numpy array), array of predicted y data values
(float): score of R^2