毕业论文开发语言企业开发JAVA技术.NET技术WEB开发Linux/Unix数据库技术Windows平台移动平台嵌入式论文范文英语论文
您现在的位置: 毕业论文 >> 开发语言 >> 正文

RuntimeError: maximum recursion depth exceeded

更新时间:2016-6-15:  来源:毕业论文

用Python写个机器学习的线性回归算法的东西,在输出最佳拟合直线时报错
哪个大侠能帮忙解决下?
Traceback (most recent call last):
  File "<pyshell#19>", line 1, in <module>
    ax.plot(xCopy[:,1],yHat)
  File "C:\Python27\lib\site-packages\matplotlib\axes.py", line 4137, in plot
    for line in self._get_lines(*args, **kwargs):
  File "C:\Python27\lib\site-packages\matplotlib\axes.py", line 317, in _grab_next_args
    for seg in self._plot_args(remaining, kwargs):
  File "C:\Python27\lib\site-packages\matplotlib\axes.py", line 295, in _plot_args
    x, y = self._xy_from_xy(x, y)
  File "C:\Python27\lib\site-packages\matplotlib\axes.py", line 213, in _xy_from_xy
    bx = self.axes.xaxis.update_units(x)
  File "C:\Python27\lib\site-packages\matplotlib\axis.py", line 1336, in update_units
    converter = munits.registry.get_converter(data)
  File "C:\Python27\lib\site-packages\matplotlib\units.py", line 148, in get_converter
    converter = self.get_converter(xravel[0])
converter = self.get_converter(xravel[0])
  File "C:\Python27\lib\site-packages\numpy\matrixlib\defmatrix.py", line 305, in __getitem__
    out = N.ndarray.__getitem__(self, index)
RuntimeError: maximum recursion depth exceeded
开始以为是递归深度问题,后来加了sys.setrecursionlimit(10000)运行ax.plot(xCopy[:,1],yHat)然后IDE就restart了。。

,确实是版本的问题,用1.3.0就好。

设为首页 | 联系站长 | 友情链接 | 网站地图 |

copyright©youerw.com 优尔论文网 严禁转载
如果本毕业论文网损害了您的利益或者侵犯了您的权利,请及时联系,我们一定会及时改正。