R^2
R^2 (coefficient of determination)
r_square(y_true, y_pred)
y_true
A numeric vector with ground truth values.
y_pred
A numeric vector with predicted values.