struc2vec icon indicating copy to clipboard operation
struc2vec copied to clipboard

RuntimeWarning: invalid value encountered in double_scalars

Open songzenghui opened this issue 6 years ago • 1 comments

When i run the code with Cora dataset ,the following occurs: /home/songzenghui/zee/struc2vec/src/algorithms_distances.py:541: RuntimeWarning: invalid value encountered in double_scalars e_list = [x / sum_w for x in e_list] The dataset has 2708 nodes,5429 edges,and i ran python src/main.py --input graph/cora.edgelist --output emb/cora.embeddings --OPT1 True --OPT2 Ture --OPT3 True Is the sum_w too small so that the division is invalid?

songzenghui avatar Apr 30 '18 01:04 songzenghui

I'm having the same exact issue. However, when I checked my output file for the embeddings. I was able to verify that all of the embeddings were there. I'm not sure if they would be different if struc2vec had completed without a hiccup though.

hqkhan avatar Jul 10 '18 20:07 hqkhan