struc2vec
struc2vec copied to clipboard
RuntimeWarning: invalid value encountered in double_scalars
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?
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.