【发布时间】:2018-07-18 10:09:10
【问题描述】:
my_csr_matrix
my_csr_matrix[:,736225:1783504] = 0
Traceback (most recent call last):
File "C:\Users\abhatia\AppData\Local\Continuum\anaconda3\lib\site-packages\IPython\core\interactiveshell.py", line 2862, in run_code
exec(code_obj, self.user_global_ns, self.user_ns)
File "<ipython-input-135-b0e125d5d27e>", line 1, in <module>
my_csr_matrix[:,736225:1783504] = 0
File "C:\Users\abhatia\AppData\Local\Continuum\anaconda3\lib\site-packages\scipy\sparse\compressed.py", line 695, in __setitem__
i, j = self._swap((i.ravel(), j.ravel()))
MemoryError
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "C:\Users\abhatia\AppData\Local\Continuum\anaconda3\lib\site-packages\IPython\core\interactiveshell.py", line 2802, in run_ast_nodes
if self.run_code(code, result):
File "C:\Users\abhatia\AppData\Local\Continuum\anaconda3\lib\site-packages\IPython\core\interactiveshell.py", line 2879, in run_code
self.showtraceback(running_compiled_code=True)
TypeError: showtraceback() got an unexpected keyword argument 'running_compiled_code'
【问题讨论】:
标签: python scipy sparse-matrix