[pymvpa] An error occurs when I use the function "zscore" ...
冯璐
fenglu at fingerpass.net.cn
Thu Feb 9 11:30:06 UTC 2012
But if I use the code like this,
zscore(dataset, targetdtype="float32"),
the result seems reasonable.
The declaration of the function "zscore" is like this,
zscore(dataset, mean=None, std=None, perchunk=True, baselinelabels=None, pervoxel=True, targetdtype="float32").
It also said that,
"If 'baselinelabels' provided, and 'mean' or 'std' aren't provided, it would compute the corresponding measure based only on labels in 'baselinelabels'."
I'm puzzled. When mean=std=baselinelabels=None, what happened to the dataset?
Best wishes!
Lu FENG
fenglu at fingerpass.net.cn
-----Original Message-----
From: pkg-exppsy-pymvpa-bounces+fenglu=fingerpass.net.cn at lists.alioth.debian.org [mailto:pkg-exppsy-pymvpa-bounces+fenglu=fingerpass.net.cn at lists.alioth.debian.org] On Behalf Of 冯璐
Sent: 2012年2月9日 19:04
To: 'Development and support pf PyMVPA'
Subject: Re: [pymvpa] An error occurs when I use the function "zscore" ...
Thanks a lot. Now the program has run without any error. But after zscoring, nothing happened. The dataset has no change. My code is
zscore(dataset, mean=0, std=N.ones(dataset.nfeatures), perchunk=True, pervoxel=True, targetdtype="float32")
Best wishes!
Lu FENG
fenglu at fingerpass.net.cn
-----Original Message-----
From: pkg-exppsy-pymvpa-bounces+fenglu=fingerpass.net.cn at lists.alioth.debian.org [mailto:pkg-exppsy-pymvpa-bounces+fenglu=fingerpass.net.cn at lists.alioth.debian.org] On Behalf Of Yaroslav Halchenko
Sent: 2012年2月9日 7:51
To: Development and support pf PyMVPA
Subject: Re: [pymvpa] An error occurs when I use the function "zscore" ...
our bad -- documentation lied -- apparently std needs to be an array
whenever pervoxel is True (which is the default).
I will patch it up in 0.4.x series (I don't think mvpa2 is prone to it -- will
check too), meanwhile just specify std with an array explicitly
std=N.ones(dataset.nfeatures)
Cheers and thanks for the report
> Dear expert,
>
> An error occurs when I use the function ��zscore�� �� Can anyone
> help me? Thank you in advance.
> zscore(dataset, mean=0, std=1, perchunk=True, pervoxel=True,
> targetdtype="float32")
>
--
=------------------------------------------------------------------=
Keep in touch www.onerussian.com
Yaroslav Halchenko www.ohloh.net/accounts/yarikoptic
_______________________________________________
Pkg-ExpPsy-PyMVPA mailing list
Pkg-ExpPsy-PyMVPA at lists.alioth.debian.org
http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/pkg-exppsy-pymvpa
__________ Information from ESET NOD32 Antivirus, version of virus signature database 6865 (20120207) __________
The message was checked by ESET NOD32 Antivirus.
http://www.eset.com
_______________________________________________
Pkg-ExpPsy-PyMVPA mailing list
Pkg-ExpPsy-PyMVPA at lists.alioth.debian.org
http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/pkg-exppsy-pymvpa
__________ Information from ESET NOD32 Antivirus, version of virus signature database 6865 (20120207) __________
The message was checked by ESET NOD32 Antivirus.
http://www.eset.com
More information about the Pkg-ExpPsy-PyMVPA
mailing list