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

Index error in utils/utils.py #25

Open
binonteji opened this issue Feb 18, 2022 · 1 comment
Open

Index error in utils/utils.py #25

binonteji opened this issue Feb 18, 2022 · 1 comment

Comments

@binonteji
Copy link

Hi there, thanks for great work!

I am trying to run this:

python main.py -c config/ca-grqc.ini

Traceback (most recent call last):
File "/home/netra/mywork/Assessment/SDNE/main.py", line 95, in
print(fout, epochs, "reconstruction:", check_reconstruction(embedding, train_graph_data, config.check_reconstruction))
File "/home/netra/mywork/Assessment/SDNE/utils/utils.py", line 39, in check_reconstruction
precisionK = get_precisionK(embedding, graph_data, np.max(check_index))
File "/home/netra/mywork/Assessment/SDNE/utils/utils.py", line 32, in get_precisionK
if(data.adj_matrix[x].toarray()[0][y] == 1 or x == y):
File "/home/netra/anaconda3/lib/python3.9/site-packages/scipy/sparse/_index.py", line 33, in getitem
row, col = self._validate_indices(key)
File "/home/netra/anaconda3/lib/python3.9/site-packages/scipy/sparse/_index.py", line 138, in _validate_indices
row = self._asindices(row, M)
File "/home/netra/anaconda3/lib/python3.9/site-packages/scipy/sparse/_index.py", line 162, in _asindices
raise IndexError('Index dimension must be <= 2')
IndexError: Index dimension must be <= 2

@zsong96wisc
Copy link

I have the same issue here.

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