toarray appear memory error problem solving (time)

When you create a word frequency matrix, due to the large amount of data into a matrix in the toarray () occurred during a memory error.

I thought it was computer memory is too small, then tried to set the virtual memory, borrow large computer roommate, will not even run from the gpu. ! ! ! Cried 

Later I saw https://jingyan.baidu.com/article/a65957f434970a24e67f9be6.html#!/article/a65957f434970a24e67f9be6 found numpy slave can not create much of a matrix! Follow the link in the methods finally resolved.

Guess you like

Origin www.cnblogs.com/yuyu-blog/p/11496250.html
Recommended