02. (지도학습)_Multiple Linear Regression(다중 선형 회귀)
2. Multiple Linear Regression(다중 선형 회귀)¶ 원-핫 인코딩¶ In [1]:import pandas as pd In [2]:dataset = pd.read_csv('../data/MultipleLinearRegressionData.csv')X = dataset.iloc[:, :-1].valuesy = dataset.iloc[:, -1].valuesdataset.head() Out[2]: hourabsentplacescore00.53Home1011.24Library821.82Cafe1432.40Cafe2642.62Home22 In [19]:X, y Out[19]:(array([[1.0, 0.0, 0.5, 3], [0.0, 1.0, 1.2, 4], [0...