tangles.util.graph.similarity#
Functions
Return the cosine similarity matrix of the rows of the matrix data |
|
Creates a similarity graph on the data based on cosine similarity between the data points |
|
Creates a neighborhood graph from precomputed distances |
|
A function to create a grid-like graph where every vertex is connected to all neighbors that are close (in grid coordinates) |
|
The hamming distance, named after Richard Hamming, is a similarity metric measuring the number |
|
Computes a similarity graph for pixels of an image |
|
Creates a k-nearest neighbor graph (or something like a k-nearest neighbor graph) from distances |