data-iitd/tigger

Errors encountered when running "graph_generation_from_sampled_random_walks. py"

Closed this issue · 2 comments

Hi, when I try to run graph_generation_from_sampled_random_walks. py, I got error as follow. I don't know why such errors occur. They do not occur on bitcoin and ucsocial datasets, but on Wikipedia and Reddit. I want to know how to solve it. Thank you.

D:\anaconda\python.exe` D:/bigexperiment/tigger/graph_generation_wiki.py

Namespace(config_path='D:/bigexperiment/tigger/wiki/', data_path='D:/bigexperiment/tigger/data/CAW_data/wiki_processed.csv', l_w=10, num_of_sampled_graphs=1, time_window=1, topk_edge_sampling=1)

0

0 3149480 3149480

Mean length 9.200193047741214 and Std deviation 2.953233186922926

2997584

100%|██████████| 2997584/2997584 [35:45<00:00, 1397.42it/s]

1/2Traceback (most recent call last):

  File "D:/bigexperiment/tigger/graph_generation_wiki.py", line 123, in <module>

    sampled_graphs.append(sample_adj_graph_topk(adj_matrix_temporal_sampled,start_time,start_time+time_window-1,target_edge_counts[ct],target_node_counts[ct],degree_distributions[ct],True))

  File "D:\bigexperiment\tigger\metrics\metric_utils.py", line 469, in sample_adj_graph_topk
    threshold = counts[-1]-1

IndexError: list index out of range``





hey, will it be possible for you to use the ubuntu/Linux system to run as this code is tested on the ubuntu system and it seems that you are using windows based system?

Moreover, for Reddit and wiki, their T is 2.6M(seconds); we have used time_window=3600 during graph generation to allow snapshot metric computation and comparison.

Thanks for your reply, I realized that it may be the error caused by the parameter setting, I will try to make the time_window = 3600, but how did this value get it, I did not find it in readme, can you tell me how the different parameter settings in your experiments on these datasets are, because I have not been able to get the ideal results in your paper.
Also I'll try to run your code on the Ubuntu system. Thanks again for your suggestion