Skip to content

Index error in utils/utils.py #25

@binonteji

Description

@binonteji

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions