pub fn r2_score(truth: VR1D<'_>, predicted: VR1D<'_>) -> Result<f64, ErrorsJSL>Expand description
The coefficient of determination 1 - SS_res / SS_tot (1 is perfect; can be negative; a
constant target gives 1 for exact predictions and -inf otherwise).