[pymvpa] LinearCSVMC() error with python 2.7 but not 2.6?
Yaroslav Halchenko
debian at onerussian.com
Thu Sep 13 16:46:42 UTC 2012
sorry for the delays with the answers... so the wild guess (I haven't
tried your .nii yet but got other failures ;) ) is that :
> before: Dataset(memmap([[� 3.19004774e-01,� -2.48533797e+00,��
> 1.55277145e+00,
> after:��� Dataset(array([[� 3.19004774e-01,� -2.48533797e+00,��
> 1.55277145e+00,
is the cause... what if you
ds.samples = np.asarray(ds.samples)
after you create the dataset -- does it workaround the issue as well?
I have not realized that memmap (which is what by default nibabel
returns if it can memmap the file, which it can here with uncompressed
.nii) has "intricacies" -- e.g. np.sum on a memmap'ed array is again a
memmap object instead of just a scalar...
--
Yaroslav O. Halchenko
Postdoctoral Fellow, Department of Psychological and Brain Sciences
Dartmouth College, 419 Moore Hall, Hinman Box 6207, Hanover, NH 03755
Phone: +1 (603) 646-9834 Fax: +1 (603) 646-1419
WWW: http://www.linkedin.com/in/yarik
More information about the Pkg-ExpPsy-PyMVPA
mailing list