-
Notifications
You must be signed in to change notification settings - Fork 26
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
MemoryError while loading graph #71
Comments
Unfortunately we have some speed/size issues that I just havn't had time to address as this is more of a hobby project at the moment. Most of the functions are designed to work with 1000x1000x1000 size networks. I am assuming you are trying to use the TemporalNetwork class? If yes, you can try the hdf5 flag. You may hit a MemoryError a little later, depending on what you try and do as not everything is hdf5 optimized. Or you may hit some speed issues. But, hopefully, that will work. |
Thanks for your quick reply! |
No problem. Let me know how it goes. If not, I will make sure we get that networksize covered when I get around to rewriting the core of teneto (but finding time is the problem) |
Unfortunately, setting the flag has no effect. |
Could you explain a little more (just for my understanding). Did it fail to load the network or run a function after it was loaded? If the latter, which function. |
Still at loading stage. |
And the network is dense (i.e. few edges are 0)? |
The network is not particularly dense ~87k directed edges for 8k nodes: approx density of the static graph 0.001 |
Thanks. Could you send the complete error message (i.e. the ca 10-20 lines above the MemoryError). It will help me isolate the memory hogging process. Sorry about this. |
Don't worry, I'll send you the whole stacktrace first thing tomorrow morning! |
Here it is:
|
Thanks.
Try adding:
forcesparse=True
… 6 juni 2020 kl. 10:07 skrev Giulio Rossetti ***@***.***>:
forcesparse
|
Tried: same stacktrace. |
Thanks. I will look into this.
… 6 juni 2020 kl. 10:28 skrev Giulio Rossetti ***@***.***>:
Tried: same stacktrace.
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub, or unsubscribe.
|
If I try to load a relatively small network (~86980 edges) composed of three snapshots I get the following error:
MemoryError: Unable to allocate array with shape (110011, 110011, 3) and data type float64
I have the same behavior loading an edgelist as well as a pandas DataFrame.
Is it a known scalability issue or is there something that I am missing?
If so, what's the network size that teneto is able to handle?
The text was updated successfully, but these errors were encountered: