| R2_Score | R Documentation | 
Compute the R-Squared (Coefficient of Determination) Regression Score.
R2_Score(y_pred, y_true)
y_pred | 
 Estimated target values vector  | 
y_true | 
 Ground truth (correct) target values vector  | 
R^2 Score
data(cars)
reg <- lm(log(dist) ~ log(speed), data = cars)
R2_Score(y_pred = exp(reg$fitted.values), y_true = cars$dist)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.