示例#1
0
 def test_eval_bootstrap_rdm(self):
     from rsatoolbox.inference import eval_bootstrap_rdm
     from rsatoolbox.rdm import RDMs
     from rsatoolbox.model import ModelFixed
     rdms = RDMs(np.random.rand(11, 10))  # 11 5x5 rdms
     m = ModelFixed('test', rdms.get_vectors()[0])
     eval_bootstrap_rdm(m, rdms, N=10)
     eval_bootstrap_rdm(m, rdms, N=10, boot_noise_ceil=True)
示例#2
0
 def test_bootstrap_testset_rdm(self):
     from rsatoolbox.inference import bootstrap_testset_rdm
     from rsatoolbox.rdm import RDMs
     from rsatoolbox.model import ModelFixed
     rdms = RDMs(np.random.rand(11, 10))  # 11 5x5 rdms
     m = ModelFixed('test', rdms.get_vectors()[0])
     _, _ = bootstrap_testset_rdm(m,
                                  rdms,
                                  method='cosine',
                                  fitter=None,
                                  N=100,
                                  rdm_descriptor=None)