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 query-engine |
untrain() |
Make a new SurfaceQueryEngine
Parameters: | surface: surf.Surface :
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 query-engine |
untrain() |
Return feature ids of features near a vertex
Parameters: | vertex_id: int :
|
---|---|
Returns: | feature_ids: list of int :
|
Train the query-engine
Parameters: | ds: Dataset :
|
---|