[pymvpa] Dataset into array

Yaroslav Halchenko debian at onerussian.com
Tue Feb 9 01:36:56 UTC 2010


well -- your Dataset contains data in ndarray -- just access
dsm.samples

NB teaser -- 0.5.x provides convenience __array__ method, so you could
just feed dataset into numpy functions and they would automagically
access .samples for processing them as ndarray

On Mon, 08 Feb 2010, Geethmala wrote:

>    Hi,
>    Is there way to convert the Nifti Dataset into an ndarray?
>    I need this because I am trying to produce the dissimilarity matrix
>    using the following function
>    dsm = DSMatrix(dataset, 'spearman')
>    Currently, my dataset looks like this
>    Dataset / float32 1260 x 46754 uniq: 8 chunks 8 labels
>    Thanks in advance.
>    -Geethmala

> _______________________________________________
> Pkg-ExpPsy-PyMVPA mailing list
> Pkg-ExpPsy-PyMVPA at lists.alioth.debian.org
> http://lists.alioth.debian.org/mailman/listinfo/pkg-exppsy-pymvpa


-- 
                                  .-.
=------------------------------   /v\  ----------------------------=
Keep in touch                    // \\     (yoh@|www.)onerussian.com
Yaroslav Halchenko              /(   )\               ICQ#: 60653192
                   Linux User    ^^-^^    [175555]





More information about the Pkg-ExpPsy-PyMVPA mailing list