[pymvpa] Quick Searchlight Question

Michael Hanke mih at debian.org
Mon Mar 17 12:33:50 UTC 2014


Hey,

sorry for the delay -- this somehow fell under the table.

On Mon, Feb 24, 2014 at 05:00:50PM +0000, Hanson, Gavin Keith wrote:
> I’m playing around with using searchlights in different ways, and I
> would like to be able to pass a feature attribute corresponding to the
> sphere center for each sl sphere to the datameasure I’m using in the
> searchlight, so I can use a per-searchlight FA to influence the cross
> validation procedure for each searchlight sphere.  Note that I would
> like to have the FA available at the end of the Cross Validation, for
> use in a postproc procedure buried in a Chain Node.

The Searchlight class has an argument add_center_fa. From the docs:

  add_center_fa : bool or str
    If True or a string, each searchlight ROI dataset will have a boolean
    vector as a feature attribute that indicates the feature that is the
    seed (e.g. sphere center) for the respective ROI. If True, the
    attribute is named 'roi_seed', the provided string is used as the name
    otherwise.

With this enable, you only need your measure to inspect the incoming
dataset for this information.

HTH,

Michael

-- 
Michael Hanke
http://mih.voxindeserto.de



More information about the Pkg-ExpPsy-PyMVPA mailing list