maxfuse.spatial_utils

Utility functions for dealing with spatial data

Functions

bind_spatial

Return a new array of form [wt_on_features * features / feature_norm, (1-wt_on_features) * nbhd / nbhd_norm]

get_neighborhood_composition

Compute the composition of neighbors for each sample.

get_spatial_knn_indices

Compute k-nearest neighbors of locations.