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
_______________________________________________
Pkg-ExpPsy-PyMVPA mailing list
[email protected]
http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/pkg-exppsy-pymvpa