python画散点图和折线图
前提:画图必须要有数据,散点图数据自己构造的,折线图数据是通过线性回归模型预测的
from sklearn.linear_model import LinearRegression
import matplotlib.pyplot as plt
x = [[5.1], [3.5], [7.1], [6.2], [8.8], [7.8], [4.5], [5.6], [8.0], [6.4]]
y...
原创
2019-11-21 15:02:26 ·
2367 阅读 ·
0 评论