increased RDM size for test of bootstrap-crossvalidation to avoid common division by 0 problems
@@ -149,11 +149,11 @@ class test_crossval(unittest.TestCase):
from pyrsa.inference import bootstrap_crossval
from pyrsa.rdm import RDMs
from pyrsa.model import ModelFixed
- dis = np.random.rand(11,10) # 11 5x5 rdms
+ dis = np.random.rand(11,45) # 11 10x10 rdms
mes = "Euclidean"
des = {'subj':0}
rdm_des = {'session':np.array([0,1,2,2,4,5,6,7,7,7,7])}
- pattern_des = {'type':np.array([0,1,2,2,4])}
+ pattern_des = {'type':np.array([0,1,2,2,4,5,5,5,6,7])}
rdms = RDMs(dissimilarities=dis,
rdm_descriptors=rdm_des,
pattern_descriptors=pattern_des,
