gemmr.metrics.mk_weightError

gemmr.metrics.mk_weightError(ds, suffix='')

Evaluate the weight error.

Weight error is the maximum cosine-distance between estimated and true weights across datasets \(X\) and \(Y\).

Parameters:
  • ds (xr.Dataset) – outcome dataset
  • suffix (str) – the calculation is based on the outcome metric 'x/y_weights_true_cossim' + suffix
Returns:

metric – evaluated metric

Return type:

xr.DataArray