OptimizeWarning: Covariance of the parameters could not be estimated
在使用python 的scipy函数进行曲线拟合时遇到这个问题,协方差矩阵无法正确求出,均为Inf,
解决方案:给拟合的参数定义一个限制区间
即:popt, pcov = curve_fit(funl, x, y,bounds=(0, [80, 24., 0.2]))
可去查看curve_fit函数的源码解释,帮助深刻理解
OptimizeWarning: Covariance of the parameters could not be estimated
在使用python 的scipy函数进行曲线拟合时遇到这个问题,协方差矩阵无法正确求出,均为Inf,
解决方案:给拟合的参数定义一个限制区间
即:popt, pcov = curve_fit(funl, x, y,bounds=(0, [80, 24., 0.2]))
可去查看curve_fit函数的源码解释,帮助深刻理解