[pymvpa] how to fslmerge data and generate attributes file

Nick Oosterhof nikolaas.oosterhof at unitn.it
Sun Aug 24 14:02:16 UTC 2014

On Aug 23, 2014, at 4:27 PM, cfygj <cfygj at 126.com> wrote:

> I want to train a SVM classifier to discriminate conditions a & b in task 1 and then test it on the independent dataset from the task 2

Usually this is achieved by


where clf is a classifier and ds{1,2} are the training and test dataset, respectively.

> However, I do not know how to fslmerge my data

What do you mean by "to fslmerge" data?

> and to generate the texts of the attributes file to realize this plan

Please see the PyMVPA tutorial, part 3 (tutorial_mappers.html).

> I do not know how to modify my script to appeal to this plan.

I suggest first to get data loading and setting sample attributes to work, then try training and testing a classifier on your data.

If you cannot get it to work, feel free to post the this mailinglist, but I suggest strongly to be more specific about:

1) what you want to achieve
2) what information you have found that may help in achieving that goal
3) what you've tried
4) what output you got
5) what output you expected to get

Broad comments saying you're looking for "advice on some ways to deal with my problems" or that "some error information emerged", in combination with just pasting a script, (a) gives usually not enough information to give good advice; and (b) may convey the impression that you expect others you solve your problems without you having tried very hard yourself.

More information about the Pkg-ExpPsy-PyMVPA mailing list