MCPcopy
hub / github.com/FedML-AI/FedML / get_data

Function get_data

research/SpreadGNN/data/data_loader.py:12–21  ·  view source on GitHub ↗
(path)

Source from the content-addressed store, hash-verified

10
11
12def get_data(path):
13 with open(path + "/adjacency_matrices.pkl", "rb") as f:
14 adj_matrices = pickle.load(f)
15
16 with open(path + "/feature_matrices.pkl", "rb") as f:
17 feature_matrices = pickle.load(f)
18
19 labels = np.load(path + "/labels.npy")
20
21 return adj_matrices, feature_matrices, labels
22
23def create_random_split(path):
24 adj_matrices, feature_matrices, labels = get_data(path)

Callers 2

create_random_splitFunction · 0.70
load_moleculenetFunction · 0.70

Calls 1

loadMethod · 0.80

Tested by

no test coverage detected