[pymvpa] Confusion Matrix for each Node with sphere_gnbsearchlight

marco tettamanti mrctttmnt at gmail.com
Fri Aug 28 11:48:25 UTC 2015


Dear all,
is it possible to obtain confusion matrices for all nodes with 
"sphere_gnbsearchlight", as was suggested before with "sphere_searchlight":

slcvte = CrossValidation(clf, partitioner, errorfx=None, 
postproc=ChainNode([Confusion(labels=fds.UT)]))
class KeepConfusionMatrix(Node):
      def _call(self, fds):
          out = np.zeros(1, dtype=object)
          out[0] = (fds.samples)
          return out

slcvte.postproc.append(KeepConfusionMatrix())
slght = sphere_searchlight(slcvte, radius=slradius, space='voxel_indices', 
nproc=4, postproc=mean_sample())
slght_map = slght(fds)


Thank you and best wishes,
Marco

-- 
Marco Tettamanti, Ph.D.
Nuclear Medicine Department & Division of Neuroscience
San Raffaele Scientific Institute
Via Olgettina 58
I-20132 Milano, Italy
Phone ++39-02-26434888
Fax ++39-02-26434892
Email: tettamanti.marco at hsr.it
Skype: mtettamanti

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.alioth.debian.org/pipermail/pkg-exppsy-pymvpa/attachments/20150828/8708e405/attachment.html>


More information about the Pkg-ExpPsy-PyMVPA mailing list