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

Error: column index out of bounds #16

Open
jfredfan opened this issue Jun 7, 2021 · 3 comments
Open

Error: column index out of bounds #16

jfredfan opened this issue Jun 7, 2021 · 3 comments

Comments

@jfredfan
Copy link

jfredfan commented Jun 7, 2021

Hi - I installed ProNE (python 2.7) and was able to train embeddings for the PPI example with the command:
python proNE.py -graph data/PPI.ungraph -emb1 emb/PPI_sparse.emb -emb2 emb/PPI_spectral.emb
-dimension 128 -step 10 -theta 0.5 -mu 0.2

However, when applied on my own data it ran into the following exception. Appreciate any advice what went wrong. The input is about 50MB so I don't know how to share it for debugging. Thanks much in advance.

Traceback (most recent call last):
File "proNE.py", line 178, in
main()
File "proNE.py", line 157, in main
model = ProNE(args.graph, args.emb1, args.emb2, args.dimension)
File "proNE.py", line 31, in init
matrix0[e[0], e[1]] = 1
File "/home/m1234567/miniconda2/lib/python2.7/site-packages/scipy/sparse/lil.py", line 332, in setitem
self.rows, self.data, i, j, x)
File "_csparsetools.pyx", line 63, in scipy.sparse._csparsetools.lil_insert
File "_csparsetools.pyx", line 89, in scipy.sparse._csparsetools.lil_insert
IndexError: column index (17654) out of bounds

@jfredfan
Copy link
Author

I think I figured out. When preparing the input node pairs, there is no need to perform dedup or remove self-link. Those preprocesses seem to cause problem instead.

@shuiyuejihua
Copy link

Node index is continuous without interruption.

@XquaKe
Copy link

XquaKe commented May 27, 2024

Did you solve this problem?

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

3 participants