You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

28 lines
512 B

2 years ago
import pickle
import numpy as np
import scipy.sparse as sp
def load_data_1(dataset):
2 years ago
adj = np.loadtxt('./data/partitioned_data/{0}/orig/{0}_adj_orig.txt'.format(dataset), dtype=int)
2 years ago
adj = sp.csr_matrix(adj)
2 years ago
features = pickle.load(open("data/partitioned_data/{0}/feature/{0}_feature.pkl".format(dataset),'rb'))
2 years ago
y_test = 0
tx = 0
ty = 0
test_mask = 0
labels = 0
return adj, features, y_test, tx, ty, test_mask, labels
if __name__ == "__main__":
load_data_1('e')