Welcome to the CSC Q&A, on our server named in honor of Ada Lovelace. Write great code! Get help and give help!
It is our choices... that show what we truly are, far more than our abilities.

Categories

+8 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 (1 point)

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 (1 point)
selected by
0

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

+2 votes

Thanks! Had the same issue

answered by (1 point)
...