mvpa2.measures.nnsearchlight.IndexQueryEngine

Inheritance diagram of IndexQueryEngine
class mvpa2.measures.nnsearchlight.IndexQueryEngine(sorted=True, **kwargs)

Provides efficient query engine for discrete spaces.

Uses dictionary lookups for elements indices and presence in general. Each space obtains a lookup dictionary which performs translation from given index/coordinate into the index within an index table (with a dimension per each space to search within).

TODO: - extend documentation - repr

Attributes

ids

Methods

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

sorted : bool

Results of query get sorted

Attributes

ids

Methods

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

Either to sort the query results