[pymvpa] Within-subject classification, getting each subject's scores averaged over number of runs
sjogard at stud.ntnu.no
Fri Apr 22 12:17:03 UTC 2016
I'm running some within-subject classifications in pyMVPA (same as the example script on the site/in the manual in the hyperalignment section). Everything works fine, and I get the average within-subject classification scores. However, I also want to the classification scores for each subject.
The results are organized by the lines:
wsc_results = [cv(sd) for sd in sd_all)
wsc_results = vstack(wsc_results)
If I type in:
I get each subject's scores per run (7 runs), but I of course want to average the runs per subject. I've tried:
wsc_results = [cv(sd)/nruns for sd in sd_all)
But that doesn't work (TypeError: unsupported operand type(s) for /: 'Dataset' and 'int').
Do you know how to get each subject's classification scores, averaged over number of runs?
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the Pkg-ExpPsy-PyMVPA