[pymvpa] Multiple datasets in one hdf5 file
孔令军
201421210014 at mail.bnu.edu.cn
Tue Jul 21 06:32:27 UTC 2015
Hi :
The accessory are my experiment data and the file of attributes(The lable of each timepoint,TR=2s)
Can you help me to make the single file like the ''hyperalignment_tutorial_data.hdf5.gz''
I attemppted to use dcm2niigui.exe to transform every single subjects' 3D data to a single 4D file , then use h5save to integration all subjects' data.
>>> print ds_all[0]
<Dataset: 384x131072 at float64, <sa: chunks,subject,targets,time_coords,time_indices>, <fa: voxel_indices>, <a: imghdr,imgtype,mapper,voxel_dim,voxel_eldim>>
But when I input :
>>>nruns = len(ds_all[0].UC)
>>> nruns
1
so I can't do the cross validation
>>> wsc_results = [cv(sd) for sd in ds_all]
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/usr/lib/pymodules/python2.7/mvpa2/base/learner.py", line 239, in __call__
return super(Learner, self).__call__(ds)
File "/usr/lib/pymodules/python2.7/mvpa2/base/node.py", line 84, in __call__
result = self._call(ds)
File "/usr/lib/pymodules/python2.7/mvpa2/measures/base.py", line 472, in _call
return super(CrossValidation, self)._call(ds)
File "/usr/lib/pymodules/python2.7/mvpa2/measures/base.py", line 301, in _call
result = node(sds)
File "/usr/lib/pymodules/python2.7/mvpa2/base/learner.py", line 239, in __call__
return super(Learner, self).__call__(ds)
File "/usr/lib/pymodules/python2.7/mvpa2/base/node.py", line 84, in __call__
result = self._call(ds)
File "/usr/lib/pymodules/python2.7/mvpa2/measures/base.py", line 559, in _call
% (ds.sa[splitter.get_space()].unique))
ValueError: Got empty training dataset from splitting in TransferMeasure. Unique values of input split attribute are: [2])
I will appreciate if you can help me to make the file and show me how to solve the problems.
超大附件
data.zip (1785.24M, 2015年8月5日 10:59到期 )
下载
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.alioth.debian.org/pipermail/pkg-exppsy-pymvpa/attachments/20150721/b0c63496/attachment.html>
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: attributes.txt
URL: <http://lists.alioth.debian.org/pipermail/pkg-exppsy-pymvpa/attachments/20150721/b0c63496/attachment.txt>
More information about the Pkg-ExpPsy-PyMVPA
mailing list