basic skeleton
@@ -5,7 +5,7 @@ Inference module utilities
"""
import numpy as np
-from scipy.stats import rankdata
+from scipy.stats import rankdata, ranksums
from pyrsa.model import Model
from pyrsa.rdm import RDMs
from collections.abc import Iterable
@@ -158,6 +158,23 @@ def _nan_rank_data(rdm_vector):
return ranks
+def ranksum_test(evaluations):
+ """pairwise tests between models using the ranksums test from scipy
+
+
+ Args:
+ evaluations (numpy.ndarray):
+ model evaluations to be compared
+
+ Returns:
+ numpy.ndarray: matrix of proportions of opposit conclusions, i.e.
+ p-values for the test
+
+ """
+ pvalues = None
+ return pvalues
+
+
def pair_tests(evaluations):
"""pairwise bootstrapping significance tests for a difference in model
performance.
@@ -166,7 +183,7 @@ def pair_tests(evaluations):
Args:
evaluations (numpy.ndarray):
- RDMs to be pooled
+ model evaluations to be compared
Returns:
numpy.ndarray: matrix of proportions of opposit conclusions, i.e.
