-
Notifications
You must be signed in to change notification settings - Fork 141
Open
Description
learn-to-cluster/utils/adjacency.py
Lines 20 to 24 in 3b83458
def build_symmetric_adj(adj, self_loop=True): | |
adj = adj + adj.T.multiply(adj.T > adj) - adj.multiply(adj.T > adj) | |
if self_loop: | |
adj = adj + sp.eye(adj.shape[0]) | |
return adj |
The original adjacency matrix built from faiss is not symmetric, so what is the purpose to convert it to symmetric matrix? And why do you implement it in this way?
Metadata
Metadata
Assignees
Labels
No labels