rsatoolbox.inference.noise_ceiling module¶
calculation of noise ceilings
- rsatoolbox.inference.noise_ceiling.boot_noise_ceiling(rdms, method='cosine', rdm_descriptor='index')[source]¶
calculates a noise ceiling by leave one out & full set
- Parameters:
rdms (rsatoolbox.rdm.RDMs) – data to calculate noise ceiling
method (string) – comparison method to use
rdm_descriptor (string) – descriptor to group rdms
- Returns:
[lower nc-bound, upper nc-bound]
- Return type:
list
- rsatoolbox.inference.noise_ceiling.cv_noise_ceiling(rdms, ceil_set, test_set, method='cosine', pattern_descriptor='index')[source]¶
calculates the noise ceiling for crossvalidation. The upper bound is calculated by pooling all rdms for the appropriate patterns in the testsets. the lower bound is calculated by using only the appropriate rdms from ceil_set for training.
- Parameters:
rdms (rsatoolbox.rdm.RDMs) – complete data
ceil_set (list) – a list of the training RDMs with 2-tuple entries: (RDMs, pattern_idx)
test_set (list) – a list of the test RDMs with 2-tuple entries: (RDMs, pattern_idx)
method (string) – comparison method to use
pattern_descriptor (string) – descriptor to group patterns
- Returns:
lower nc-bound, upper nc-bound
- Return type:
list