FutureWarning: rcond
parameter will change to the default of machine precision times max(M, N)
where M and N are the input matrix dimensions.
To use the future default and silence this warning we advise to pass rcond=None
, to keep using the old, explicitly pass rcond=-1
.
其实提示已经说的很清楚了。在lstsq(A, y)中添加一个参数rcond=None,成为lstsq(A, y,rcond=None)即可。
使用numpy.linalg中lstsq报warning解决方法
最新推荐文章于 2024-06-27 10:52:25 发布
关键词由CSDN通过智能技术生成