[pymvpa] Labels from permutation testing

Richard Dinga dinga92 at gmail.com
Fri Aug 14 23:20:17 UTC 2015


If you don't want to do the "fancy dance", you can do just simply:

permutator = AttributePermutator(attr='targets')

permuted_dataset = naive_permutation(original_dataset)

print "Here are your new labels: ", permuted_dataset.sa.targets


then you don't need to put permutator into your CV, just use
permuted_dataset instead of orig. one


or for the fancy part:


permutator = AttributePermutator('targets', limit={partition:1}, count=1)

partitioner_permutator = ChainNode([partitioner, permutator])

dataset_would_be_used_during_the_first_cv_itteration  =
next(partitioner_permutator.generate(ds))


but in this case, you would need to get creative if you would like to use
the same labels also for CV.


Regarding the importance of keeping the test labels intact, I think the
state of the art knowledge is that no one really knows what should be done
anyway.


Best wishes,

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


More information about the Pkg-ExpPsy-PyMVPA mailing list