mvpa2.misc.neighborhood.QueryEngine

Inheritance diagram of QueryEngine
class mvpa2.misc.neighborhood.QueryEngine(**kwargs)

Basic class defining interface for querying neighborhood in a dataset

Derived classes provide specific implementations possibly with trade-offs between generality and performance.

TODO: extend

Attributes

ids

Methods

__call__(\*\*kwargs)
query(\*\*kwargs) Return feature ids of neighbors given a specific query
query_byid(fid) Return feature ids of neighbors for a given feature id
train(dataset)
Parameters:

**kwargs

a dictionary of query objects. Something like dict(voxel_indices=Sphere(3))

Attributes

ids

Methods

__call__(\*\*kwargs)
query(\*\*kwargs) Return feature ids of neighbors given a specific query
query_byid(fid) Return feature ids of neighbors for a given feature id
train(dataset)
ids
query_byid(fid)

Return feature ids of neighbors for a given feature id

train(dataset)