Function smartcore::metrics::r2

source ·
pub fn r2<T: Number + FloatNumber, V: ArrayView1<T>>(
    y_true: &V,
    y_pred: &V
) -> f64
Expand description

Computes R2 score, see R2.

  • y_true - Ground truth (correct) target values.
  • y_pred - Estimated target values.