摘要:
import numpy as npfrom sklearn.linear_model import LinearRegressionnp.random.seed(1)X = 2 * np.random.rand(10000, 1)#模拟出10000个yy = 4 + 3 * X + np.rand 阅读全文
摘要:
from sklearn.datasets import load_bostonfrom sklearn.linear_model import LinearRegressionimport numpy as np#data:X target:y#获取美国波士顿房价data, target = lo 阅读全文