windkit.ltc.scores.r2
- windkit.ltc.scores.r2(ds_tgt, ds_pred)[source]
Calculates the r2 regression score for the wind speed of two time series wind climate datasets. The implementation is inspired by sklearn.metrics.r2_score source code.
- Parameters:
ds_tgt (xarray.Dataset) – target time series wind climate dataset
ds_pred (xarray.Dataset) – predicted time series wind climate dataset
- Returns:
r2 – r2 score of the two wind speeds
- Return type: