hjkkkl / machine-learning

0 stars 0 forks source link

97p #20

Open hjkkkl opened 1 month ago

hjkkkl commented 1 month ago

w, b = 1,1 x0 x1 = 0.0, 1.0 def h(x, w, b): reutrn w*x + b

데이터(산포도)와 가설(직선)을 비교

lin_data.plot(kind = 'scatter', x = 'input', y = 'pollution') plt.plot([x0, x1], [h(x0, w, b), h(x1, w, b)])

hjkkkl commented 1 month ago

KakaoTalk_20241002_104340617_01