gemmr.metrics.mk_crossloadingError

gemmr.metrics.mk_crossloadingError(ds, prefix='')

Evaluate the cross-loading error.

Cross-loading error is the maximum correlation-distance between estimated test and true cross-loadings across datasets \(X\) and \(Y\).

Parameters:
  • ds (xr.Dataset) – outcome dataset

  • prefix (str) – will be prepended to the name of the property when looking it up in ds

Returns:

metric – evaluated metric

Return type:

xr.DataArray