[pymvpa] Syntax Error

Yaroslav Halchenko debian at onerussian.com
Fri Dec 19 20:09:03 UTC 2008


>    Yes, I typed "1 (one)" not "I"
>    By the way,  what do you mean I won't be albe to reassign "1" to be
>    smth esle?
you had  smth like

[ 1 in [1,2] for 1 in smth]

so it was requesting to have a variable "1" to go through all entries in
the list "smth". Since "1" is just a digit, you cannot assign to it in
Python (I guess smth like Forth language would allow it?)

>    Sorry about silly questions.
that is ok

>    For the first attempt, I'm just trying out the example sets by copying
>    and pasting them into my python, but I'm not sure what could be the
>    best way to teach myself and get the flavor of it.
That is the problem with freedom -- too many ways so some people can
easily get lost. In my case I prefer to work in emacs with python mode
and ipython being running inside of emacs. So I can simply select the
region of the code and pipe it into ipython with a single shortcut.

Michael can describe alternatives how to work from vim.

Besides that -- there are quite a few free and open-source IDEs for
Python: idle, eric
(http://eric-ide.python-projects.org/eric4-screenshots.html). Needless
to say that quite a few of them (if not all) are just 1 'apt-get'
away for Debian users.

>    I'm pretty familiar with MVPA stuff and have been analyzing my data
>    using matlab script. But, I'm totally lost in this python and linux
>    stuff.

That would be great if you figure your way  linux -> python ->
PyMVPA ;-) I bet you would start loving it after you get a single
successful analysis done ;-)


>    Best,

>    YSL







>    On Fri, Dec 19, 2008 at 2:24 PM, Yaroslav Halchenko
>    <[1]debian at onerussian.com> wrote:

>      is that 1 in there instead of l?
>      sure thing you wouldn't be able to reassign "1" to be smth else ;-)
>      depending on the version of PyMVPA (0.4.0 has it arelady iirc) you
>      can accomplish your mission with
>      dataset2 = dataset["labels", [1,2]]

>    >     I'm now trying the simple example (Tiny example of a full
>    >    cross-validation) and running into an error
>    >     as is shown in the attached file.
>    >     Can anyone help me with figuring this out?
-- 
Yaroslav Halchenko
Research Assistant, Psychology Department, Rutgers-Newark
Student  Ph.D. @ CS Dept. NJIT
Office: (973) 353-1412 | FWD: 82823 | Fax: (973) 353-1171
        101 Warren Str, Smith Hall, Rm 4-105, Newark NJ 07102
WWW:     http://www.linkedin.com/in/yarik        



More information about the Pkg-ExpPsy-PyMVPA mailing list