[pymvpa] using Balancer()

Michael Hanke mih at debian.org
Thu Jul 26 18:40:31 UTC 2012


On Thu, Jul 26, 2012 at 02:16:50PM -0400, Edmund Chong wrote:
> foo1 = partitioner.generate(dataset)

You could to

  datasets = list(partitioner.generate(dataset))

to get them all at once.
> 
> print foo2.summary()
> 
> ...I tried that, but it gives me a summary table of the number of samples
> per condition per chunk. How do I view the samples per condition per
> partition (classification fold)?

That a look at the datasets. They have a sample attribute 'partition'
(or something like that). Now look at the help for Dataset.summary()
(just do ``ds.summary?`` in IPython). That will list a 'chunks_attr'
arguments that you can set to be the partitions argument. Which in turn
will cause the summary to be per-partition.

Hope that helps,

Michael


-- 
Michael Hanke
http://mih.voxindeserto.de



More information about the Pkg-ExpPsy-PyMVPA mailing list