[pymvpa] Within-subject classification, getting each subject's scores averaged over number of runs
Martin Sjøgård
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:
print wsc_results
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?
Martin
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.alioth.debian.org/pipermail/pkg-exppsy-pymvpa/attachments/20160422/734b84bd/attachment.html>
More information about the Pkg-ExpPsy-PyMVPA
mailing list