gemmr.sample_analysis.postproc.weights_pairwise_cossim_stats

gemmr.sample_analysis.postproc.weights_pairwise_cossim_stats(res, qs=(0.025, 0.5, 0.975))

Calculate cosine similarity between weights for all pairs of repetitions.

Provides outcome metrics x_weights_pairwise_cossim_stats and y_weights_pairwise_cossim_stats.

Parameters:
  • res (xr.Dataset) – comprising all analysis outcomes
  • qs (tuple of floats between 0 and 1) – quantiles to calculate