我正在运行此代码:
F = interpolate.Rbf(X,Y,Z,V, function = 'linear')
X,Y,Z和V形状为:
(1300, 691, 122)
(1300, 691, 122)
(1300, 691, 122)
(1300, 691, 122)
我每次运行脚本时都会收到此错误。
Traceback (most recent call last):
File "make3d.py", line 180, in <module>
main(sys.argv[1:])
File "make3d.py", line 133, in main
F = interpolate.Rbf(X,Y,Z,V, function = 'linear')
File "/anaconda2/lib/python2.7/site-packages/scipy/interpolate/rbf.py", line 200, in __init__
r = self._call_norm(self.xi, self.xi)
File "/anaconda2/lib/python2.7/site-packages/scipy/interpolate/rbf.py", line 231, in _call_norm
return self.norm(x1, x2)
File "/anaconda2/lib/python2.7/site-packages/scipy/interpolate/rbf.py", line 118, in _euclidean_norm
return np.sqrt(((x1 - x2)**2).sum(axis=0))
MemoryError
起初我认为这是我的笔记本电脑的故障所以我尝试了30核心桌面,我得到了完全相同的错误消息。 我无法理解有什么不对。有任何建议或替代功能吗?