MCPcopy Index your code
hub / github.com/PyGCL/PyGCL / normalize

Function normalize

GCL/utils.py:56–57  ·  view source on GitHub ↗
(s)

Source from the content-addressed store, hash-verified

54
55
56def normalize(s):
57 return (s.max() - s) / (s.max() - s.mean())
58
59
60def build_dgl_graph(edge_index: torch.Tensor) -> dgl.DGLGraph:

Callers 4

get_feature_weightsFunction · 0.90
get_eigenvector_weightsFunction · 0.90
get_degree_weightsFunction · 0.90
get_pagerank_weightsFunction · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected