파이썬 (1) 썸네일형 리스트형 머신러닝의 첫걸음: NumPy와 Matplotlib로 선형회귀 데이터 시각화하고 분석하기 선형 회귀 모델(Linear Regression)의 기초적인 파이썬 코드 예제를 살펴보며 NumPy와 Matplotlib의 활용법을 배워보도록 하자. 코드 풀버전import numpy as npimport matplotlib.pyplot as pltplt.style.use('./deeplearning.mplstyle')# x_train is the input variable (size in 1000 square feet)# y_train is the target (price in 1000s of dollars)x_train = np.array([1.0, 2.0])y_train = np.array([300.0, 500.0])print(f"x_train = {x_train}")print(f"y_train =.. 이전 1 다음