【发布时间】:2019-01-05 05:01:15
【问题描述】:
This post 提到使用 scipy 的 full_output 选项来获取额外数据,包括有关拟合质量的更多信息:
pcov, infodict, errmsg, ier = curve_fit(func, xdata, ydata, sigma = SD, full_output = True)
经过一番搜索(谷歌,scipy 文档),我在scipy curve_fit documentation 中没有看到任何提及 full_output 选项。
谁能提供一些文档的链接?
如果没有,有人可以描述额外的返回数据以及如何使用它吗?
【问题讨论】:
-
docs.scipy.org/doc/scipy-0.19.0/reference/generated/… 它是
leastsq的一个参数,curve_fit建立在此之上(参见 kwargs 部分)。 -
@ayhan 是对的。链接的文档指出:“kwargs:传递给 leastsq 的关键字参数”。只需点击那里的链接并相应阅读。
标签: python scipy curve-fitting