[pymvpa] Selecting samples from a dataset

Yaroslav Halchenko debian at onerussian.com
Thu Apr 29 23:15:42 UTC 2010

sorry about not-clear documentation -- samples order should be
preserved.  have you observed different behavior?

N.B. we are talking about 0.4.x functionality ;)

On Thu, 29 Apr 2010, James M. Hughes wrote:

> This is a silly question from someone who should know the answer
> already, but the documentation is pretty unclear on this point:

> if we select samples from a dataset according to labels,

> e.g.,

> samples = data.select(labels=[2,4,6]),

> will the returned samples be grouped by label?

> Also, will they be returned in groups in the order of label that
> they were given?  Or are they returned in sorted order of increasing
> label?

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

More information about the Pkg-ExpPsy-PyMVPA mailing list