6강 - 회귀 문제를 이해하고 k-최근접 이웃 알고리즘으로 풀어 보기
6강 - 회귀 문제를 이해하고 k-최근접 이웃 알고리즘으로 풀어 보기 지난 시간에... 농어의 무게를 예측하라 이진 분류 타깃 0,1 회귀(regression) 타깃 임의의 숫자 회귀 골턴 - 19세기 통계학자 k-최근접 이웃 회귀(knn) 회귀와 분류의 차이 농어의 길이만 사용 import matplotlib.pyplot as plt plt.scatter(perch_length, perch_weight)//weight 타깃 plt.xlabel('length') plt.ylabel('weight') plt.show() 훈련 세트 준비 from sklearn.model_selection import train_test_split train_input, test_input, train_target, test..
2021.06.17