[pymvpa] custom partitioner

Wolfgang Pauli wolfgang.m.pauli at gmail.com
Tue May 17 23:24:27 UTC 2016


Hi,

I think I just had a shocking revelation. I tried to do cross validation
with a custom partitioner like so:

splt_rule = [([0,1],[6,7]),([1,2],[4,7]),([2,3],[4,5]),([3,0],[5,6])]
partitioner = CustomPartitioner(splitrule=splt_rule, attr='chunks')

For example, i thought the classifier would be trained on chunks 0 and 1,
and tested on 6 and 7. during cross-validation. However, when I used
actually generated the partitions and looked which chunks are in each
partition, I found that the partitioner would actually create three
partitions, two as specified by the split rule, and one containing the
remaining chunks.

I.e. instead of getting e.g. [0,1],[6,7], I would get ([2, 3, 4,
5],[0,1],[6,7]).

Is this correct? How can I keep it from creating that third partition with
the remaining items?

Thank You,

Wolfgang
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.alioth.debian.org/pipermail/pkg-exppsy-pymvpa/attachments/20160517/7e0759ba/attachment.html>


More information about the Pkg-ExpPsy-PyMVPA mailing list