https://github.com/ackrilll/Linear_Regression GitHub - ackrilll/Linear_RegressionContribute to ackrilll/Linear_Regression development by creating an account on GitHub.github.com 지난 포스팅에서 선형 회귀 모델을 학습시켜 파라미터를 갱신하는 모습을 살펴봤다. 이번에는 핵심 코드들을살펴보자 1) 데이터 생성X = torch.randn(200,1)*10y = X+3*torch.randn(200,1)plt.scatter(X.numpy(),y.numpy())plt.ylabel('y')plt.xlabel('X')plt.grid()plt.show()PyTorch 텐서 X와 y ..