plt.plot(X_train, y_train, 'r.', label='Training data') # 显示训练数据 line_X = np.linspace(X_train.min(), X_train.max(), 500) # X值域