반응형
linear_model
-
간단한 LinearRegression 으로 Boston_price 예측머신러닝(MACHINE LEARNING)/간단하게 이론(Theory...) 2021. 4. 22. 15:04
간단한 LinearRegression 으로 Boston_price 예측을 해보자. 1. 먼저 load boston 모델 load In [1]: from sklearn.datasets import load_boston import matplotlib.pyplot as plt import numpy as np In [2]: boston = load_boston() boston["data"] Out[2]: array([[6.3200e-03, 1.8000e+01, 2.3100e+00, ..., 1.5300e+01, 3.9690e+02, 4.9800e+00], [2.7310e-02, 0.0000e+00, 7.0700e+00, ..., 1.7800e+01, 3.9690e+02, 9.1400e+00], [2.7290..