pub fn r2_score(predictions: &[f32], targets: &[f32]) -> Result<f32, EvalError>
Coefficient of determination: 1 - SS_res / SS_tot.
Returns 0.0 for empty inputs (no data to explain).
0.0