MCPcopy Create free account
hub / github.com/GGA23/GrokFormer / eigen_decompositon

Function eigen_decompositon

preprocess_node_data.py:71–76  ·  view source on GitHub ↗

The normalized (unit “length”) eigenvectors,

(g)

Source from the content-addressed store, hash-verified

69
70
71def eigen_decompositon(g):
72 "The normalized (unit “length”) eigenvectors, "
73 "such that the column v[:,i] is the eigenvector corresponding to the eigenvalue w[i]."
74 g = normalize_graph(g)
75 e, u = eigh(g)
76 return e, u
77
78def eigen_decompositon2(g):
79 "The normalized (unit “length”) eigenvectors, "

Callers 1

generate_node_dataFunction · 0.85

Calls 1

normalize_graphFunction · 0.85

Tested by

no test coverage detected