MCPcopy Create free account
hub / github.com/IntelligentSystemsLab/ST-EVCDP / get_a_delta

Function get_a_delta

functions.py:37–43  ·  view source on GitHub ↗
(adj)

Source from the content-addressed store, hash-verified

35
36
37def get_a_delta(adj): # D^-1/2 * A * D^-1/2
38 # adj.shape = np.size(node, node)
39 deg = np.sum(adj, axis=0)
40 deg = np.diag(deg)
41 deg_delta = np.linalg.inv(np.sqrt(deg))
42 a_delta = np.matmul(np.matmul(deg_delta, adj), deg_delta)
43 return a_delta
44
45
46def division(data, train_rate, valid_rate, test_rate):

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected