Traceback (most recent call last):
File "main.py", line 71, in
train()
File "main.py", line 47, in train
batch_sampling_result = multihop_sampling(batch_src_index, NUM_NEIGHBORS_LIST, data.adjacency_dict)
File "E:\GraphNeuralNetwork-master\chapter7\sampling.py", line 37, in multihop_sampling
hopk_result = sampling(sampling_result[k], hopk_num, neighbor_table)
File "E:\GraphNeuralNetwork-master\chapter7\sampling.py", line 19, in sampling
res = np.random.choice(neighbor_table[sid], size=(sample_num, ))
TypeError: 'coo_matrix' object is not subscriptable
Traceback (most recent call last): File "main.py", line 71, in
train()
File "main.py", line 47, in train
batch_sampling_result = multihop_sampling(batch_src_index, NUM_NEIGHBORS_LIST, data.adjacency_dict)
File "E:\GraphNeuralNetwork-master\chapter7\sampling.py", line 37, in multihop_sampling
hopk_result = sampling(sampling_result[k], hopk_num, neighbor_table)
File "E:\GraphNeuralNetwork-master\chapter7\sampling.py", line 19, in sampling
res = np.random.choice(neighbor_table[sid], size=(sample_num, ))
TypeError: 'coo_matrix' object is not subscriptable