Query-engine that maps center nodes to indices of features (nodes) that are near each center node.
This class is for mappings from surface to surface features; for mappings from surface to voxel features, use SurfaceVerticesQueryEngine.
Methods
| query(**kwargs) | |
| query_byid(vertex_id) | Return feature ids of features near a vertex |
| train(ds) | Train the queryengine |
| untrain() |
Make a new SurfaceQueryEngine
| Parameters: | surface: surf.Surface or str :
radius: float :
distance_metric: str :
fa_node_key: str :
|
|---|
Notes
After training this instance on a dataset and calling it with self.query_byid(vertex_id) as argument,
Methods
| query(**kwargs) | |
| query_byid(vertex_id) | Return feature ids of features near a vertex |
| train(ds) | Train the queryengine |
| untrain() |
Return feature ids of features near a vertex
| Parameters: | vertex_id: int :
|
|---|---|
| Returns: | feature_ids: list of int :
|
Train the queryengine
| Parameters: | ds: Dataset :
|
|---|