카테고리 없음
다중 선형 회귀 모델 구현
import matplotlib.pyplot as plt import numpy as np from sklearn.model_selection import train_test_split from sklearn.linear_model import LinearRegression from sklearn.datasets import load_boston def load_data(): X, y = load_boston(return_X_y = True) print("데이터의 입력값(X)의 개수 :", X.shape[1]) #(row, columns) train_X, test_X, train_y, test_y = train_test_split(X, y, test_size=0.2, random_state=100) re..