lab02 Linear regression

Hypothesis

y = Wx + b

W (weight), b (bias)

Compute loss

Mean Squared Error (MSE)

loss (Model이 정답과 얼마나 가까운가) 를 계산 -> Prediction (예측값) 과 Target(학습값) 의 차이를 제곱하여 평균

Gradient descent

앞서 계산한 loss를 바탕으로 model 개선

Full Training code