[pymvpa] Attribute file

Yaroslav Halchenko debian at onerussian.com
Mon Jan 18 02:57:52 UTC 2010


interesting question... I guess something like this would be a truly
automated way:

import numpy as N; labels_chunks=(N.random.normal(size=(10,2))>0).astype(int); N.savetxt('/tmp/attributes.txt', labels_chunks.tolist(), fmt='%i %i')

next divergence from automation could be -- providing some meaningful
data instead of call to N.random.normal ;)

On Sun, 17 Jan 2010, Geethmala wrote:
>    How is the attribute.txt file created? Is there any automatic way to
>    generate this or does it have to be hand-coded?
-- 
                                  .-.
=------------------------------   /v\  ----------------------------=
Keep in touch                    // \\     (yoh@|www.)onerussian.com
Yaroslav Halchenko              /(   )\               ICQ#: 60653192
                   Linux User    ^^-^^    [175555]





More information about the Pkg-ExpPsy-PyMVPA mailing list