摘要: import numpy as np import matplotlib.pyplot as plt n_dots=200 X=np.linspace(0,1,n_dots) X=X.reshape(-1,2) y=np.sqrt(X[:,0]+X[:,1])+0.2*np.random.rand(100)-0.1 #构建多项式模型 from sklearn.pipeline import ... 阅读全文
posted @ 2019-06-22 22:59 程序杰杰 阅读(195) 评论(0) 推荐(0) 编辑