【问题标题】:Statistics Parameters in python?python中的统计参数?
【发布时间】:2018-01-24 21:44:48
【问题描述】:

谁能告诉我如何在 pyhton 中获取模型摘要。 在 R 中,我们可以简单地通过 summary(model.fit) 获得。 我想在 python 中找到适合数据集的给定回归模型的 F 统计量、p 值、标准误差。

from sklearn.linear_model import LinearRegression

clf = LinearRegression()
clf.fit(x,y)

我想要这个模型的摘要。

【问题讨论】:

  • 你选择用来训练你的模型的包应该有这些能力。由于您尚未展示您的建模代码,因此我们无法为您提供具体的帮助来查找汇总统计信息。

标签: python statistics


【解决方案1】:

这个问题没有多大意义,因为你没有说明你想用什么来适应你的模型。但是,如果您使用,例如 scipy 并且线性回归对您来说很好,您可以在此处进行描述:https://docs.scipy.org/doc/scipy-0.14.0/reference/generated/scipy.stats.linregress.html

【讨论】:

  • 谢谢,我使用了这个包并得到了想要的结果。
猜你喜欢
  • 2016-09-24
  • 2014-10-01
  • 1970-01-01
  • 2023-01-04
  • 2022-12-14
  • 1970-01-01
  • 1970-01-01
  • 2021-08-06
  • 2011-03-02
相关资源
最近更新 更多