MCPcopy Index your code
hub / github.com/GGA23/GrokFormer / feature_normalize

Function feature_normalize

preprocess_node_data.py:92–96  ·  view source on GitHub ↗
(x)

Source from the content-addressed store, hash-verified

90
91
92def feature_normalize(x):
93 x = np.array(x)
94 rowsum = x.sum(axis=1, keepdims=True)
95 rowsum = np.clip(rowsum, 1, 1e10)
96 return x / rowsum
97
98
99def load_data(dataset_str):

Callers 1

generate_node_dataFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected