windkit.ltc.scores.calc_scores
- windkit.ltc.scores.calc_scores(ds_tgt, ds_pred, name='name', period='full')[source]
Helper function that calculates r2, rmse, bias and wasserstein distance scores and generate a pandas dataframe with useful headers for reporting.
- Parameters:
ds_tgt (xarray.Dataset) – target time series wind climate dataset
ds_pred (xarray.Dataset) – predicted time series wind climate dataset
name (str) – a desired name for the case will be reported. Defaults to ‘name’
period (str) – the period for the datasets to be included in the report. Defaults to ‘full’.
- Returns:
df – dataframe with colummns “Name, “Period”, “Metric” and “Score” including the calculated scores.
- Return type: