监督学习:简单线性回归
监督学习:简单线性回归为散点数据集(x,y)拟合一条曲线import matplotlib.pyplot as pltimport seaborn as snssns.set();import numpy as nprng = np.random.RandomState(42)x = 10 * rng.rand(50)y = 2 * x - 1 + rng.randn(50)plt.scatter(x, y);1.选择模型类:在 Scikit-Learn 中,每个模型类都是一个 P
原创
2020-06-16 21:12:05 ·
167 阅读 ·
0 评论