r_square | R Documentation |
R^2
)coefficient of determination (R^2
)
r_square(y_true, y_pred)
y_true |
A numeric vector with ground truth values. |
y_pred |
A numeric vector with predicted values. |
R^2
value
y <- rnorm(100)
y_pred <- y + rnorm(100, sd = 0.5)
r_square(y, y_pred)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.