Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

RuntimeWarning: invalid value encountered in double_scalars #5

Open
songzenghui opened this issue Apr 30, 2018 · 1 comment
Open

RuntimeWarning: invalid value encountered in double_scalars #5

songzenghui opened this issue Apr 30, 2018 · 1 comment

Comments

@songzenghui
Copy link

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?

@hqkhan
Copy link

hqkhan commented Jul 10, 2018

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants