SpringRank icon indicating copy to clipboard operation
SpringRank copied to clipboard

MemoryError

Open wuseguang opened this issue 6 years ago • 4 comments

I got an MemoryError,does this implement can only process data with limited nodes?

wuseguang avatar Jul 26 '18 04:07 wuseguang

Which code were you running? Matlab, Python, R, or SAS?

And, how large is the network that you are attempting to use? This will help us to diagnose the issue.

dblarremore avatar Jul 26 '18 06:07 dblarremore

python,with edge size 363475 and node size 29611。 exception code line is: image

wuseguang avatar Jul 26 '18 06:07 wuseguang

Now I change the codes as below,it's running with out exception,but still slowly.

image

wuseguang avatar Jul 26 '18 06:07 wuseguang

I just added a new version that allows users to select the linear system's solver, I think that spsolve was too slow for your size. The default is the iterative bicgstab, which should be much faster for big networks like yours. Can you please try now? I tried generating a random network with yours' size and it seems to work.

Also, I do not get the same problem when generating the A=alphanp.eye(N)+D1-C... Apart from your solution involving the A[i,i], you may also try A=alphascipy.sparse.eye(N)+D1-C

2018-07-26 8:24 GMT+02:00 wuseguang [email protected]:

Now I change the codes as below,it's running with out exception,but still slowly.

[image: image] https://user-images.githubusercontent.com/4555475/43245045-8862a5ec-90df-11e8-81d0-5928abe282ce.png

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/cdebacco/SpringRank/issues/5#issuecomment-407989980, or mute the thread https://github.com/notifications/unsubscribe-auth/ARSx92xGEKr5w1zn5qdFOvr3vg2ERAbYks5uKWCDgaJpZM4VhLUd .

cdebacco avatar Jul 26 '18 10:07 cdebacco