Welcome to the CSC Q&A.
Get help and give help!
Write great code!
It is our choices... that show what we truly are, far more than our abilities.

Categories

+6 votes

Does anyone have this issue where Google Colab just crashes when I try to graph a large chunk of data? Is there any way to avoid this issue? More specifically, the VM's RAM just runs out when I try to graph things.

asked in CSC320 by (2.8k points)

2 Answers

+8 votes
 
Best answer

The problem is with the .todense() function. If you happen to follow the answer on StackOverflow and try to do .todense(), the dataset would be too large for the function which results in an error.

answered by (2.8k points)
selected by
0

Thanks! Saved me before I even ran into the problem!

+2 votes

Thanks! Had the same issue

answered by (2.2k points)
...