學習曲線

#part 1 生成點作爲訓練樣本 import numpy as np n_dots = 200 X = np.linspace(0,1,n_dots) y = np.sqrt(X) + 0.2*np.random.rand(n_dots) - 0.1 X = X.reshape(-1,1) y = y.reshape(-1,1) #part 2 構建模型,畫圖 from sklearn
相關文章
相關標籤/搜索