【问题标题】:Why the line not cut across the data?为什么这条线没有跨越数据?
【发布时间】:2021-03-17 03:36:35
【问题描述】:

我使用线性回归模型来预测我的数据。 Orig Data

当我使用 sns 绘图时;我可以看到所有数据点的线切割。 Using snsborn.lmplot

但是当我使用 train_test_split 函数时: coeff & interc 如下: 重量 = [0.20504568] 截距 = -1.0383656275693958

但是图表完全没有了 graph using train test split

我该如何解决这个问题?

【问题讨论】:

    标签: python graph linear-regression train-test-split


    【解决方案1】:

    我的错...我为折线图使用了错误的 X 值。

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 2014-11-10
      • 1970-01-01
      • 1970-01-01
      • 2017-12-08
      • 1970-01-01
      • 1970-01-01
      • 2014-02-15
      相关资源
      最近更新 更多