solarforecastarbiter.metrics.deterministic.coeff_determination

solarforecastarbiter.metrics.deterministic.coeff_determination(y_true, y_pred)[source]

Coefficient of determination (R^2).

Parameters:
  • y_true (array-like) – True values.
  • y_pred (array-like) – Predicted values.
Returns:

r2 (float) – The coefficient of determination (R^2 [-]) between the true and predicted values.