pub fn r2_score(
y_true: PyReadonlyArray1<'_, f64>,
y_pred: PyReadonlyArray1<'_, f64>,
sample_weight: Option<PyReadonlyArray1<'_, f64>>,
multioutput: &str,
) -> PyResult<f64>Expand description
Calculate R² (coefficient of determination) score