queryengine for neighborhoods defined in CoSMoMVPA. This class behaves like a normal QueryEngine, and its use is intended with a searchlight. It differs in that it contains the dataset (.a) and feature (.fa) attributes for the output of a searchlight. This is implemented by the method set_output_dataset_attributes. Although the standard Searchlight can be used with this function, using CosmoSearchlight automatically calls this method so that the dataset attributes for the output are properly set.
Methods
from_mat(neighbors[, a, fa]) | Create CosmoQueryEngine from mat struct |
query(**kwargs) | |
query_byid(id) | Returns |
set_output_dataset_attributes(ds) | Set attributes to output dataset (e.g. |
train(dataset) | This method does nothing |
untrain() | This method does nothing |
Parameters: | mapping: dict :
a: None or dict or ArrayCollectable :
fa: None or dict or ArrayCollectable :
|
---|
Methods
from_mat(neighbors[, a, fa]) | Create CosmoQueryEngine from mat struct |
query(**kwargs) | |
query_byid(id) | Returns |
set_output_dataset_attributes(ds) | Set attributes to output dataset (e.g. |
train(dataset) | This method does nothing |
untrain() | This method does nothing |
Returns: | a : DatasetAttributesCollection
|
---|
Returns: | fa : FeatureAttributesCollection
|
---|
Create CosmoQueryEngine from mat struct
Parameters: | neighbors: numpy.object :
a: None or dict or ArrayCollectable :
fa: None or dict or ArrayCollectable :
|
---|
Notes
Empty elements are ignored
Returns: | keys: npndarray :
|
---|
Set attributes to output dataset (e.g. after running a searchlight)
Parameters: | ds : Dataset
Returns : ds_copy : Dataset
|
---|
This method does nothing
This method does nothing