r2_score: Calculate R^2 (coefficient of determination) regression score... In scorer: Quickly Score Models in Data Science and Machine Learning

Description

Calculate R^2 (coefficient of determination) regression score function.

Usage

 `1` ```r2_score(y_true, y_pred) ```

Arguments

 `y_true` Ground truth (correct) target values. `y_pred` Estimated target values.

Value

A numeric vector of length one.

Other regression.metrics: `absolute_error`, `absolute_percent_error`, `explained_variance_score`, `log_error`, `mean_absolute_error`, `mean_absolute_percent_error`, `mean_absolute_scaled_error`, `mean_error`, `mean_percent_error`, `mean_squared_error`, `mean_squared_log_error`, `median_absolute_error`, `median_absolute_percent_error`, `median_percent_error`, `median_squared_error`, `median_squared_log_error`, `percent_error`, `squared_error`, `squared_log_error`, `symmetric_mean_absolute_percent_error`, `symmetric_median_absolute_percent_error`, `total_variance_score`, `unexplained_variance_score`
 `1` ```r2_score(1:10, 10:1) ```