[pymvpa] Combine the fMRI data with other data in the pattern analysis?

Yaroslav Halchenko debian at onerussian.com
Tue Mar 15 21:20:03 UTC 2011


clarification: N there was for our old way to import numpy, e.g.

import numpy as N

On Tue, 15 Mar 2011, Yaroslav Halchenko wrote:
> why not just constructing a lightweight dataset right there, e.g.:

>   def __call__(self, ds):
>     cov_ds = Dataset(samples=N.hstack((ds.samples, cov)),
>                      labels=ds.labels, chunks=ds.chunks)
>     # call you original measure, e.g. CrossVal... on this new cov_ds
>     # here, e.g.

>     return cv(cov_ds)

> where cov is just a numpy array (not even a dataset)
-- 
=------------------------------------------------------------------=
Keep in touch                                     www.onerussian.com
Yaroslav Halchenko                 www.ohloh.net/accounts/yarikoptic



More information about the Pkg-ExpPsy-PyMVPA mailing list