트리 알고리즘-2
교차 검증과 그리드 서치¶ 검증세트¶ In [3]: import pandas as pd wine = pd.read_csv('https://bit.ly/wine-date') In [5]: data = wine[['alcohol','sugar','pH']].to_numpy() target = wine['class'].to_numpy() In [6]: from sklearn.model_selection import train_test_split train_input, test_input, train_target, test_target = train_test_split(data, target, test_size=0.2, random_state=42) In [7]: sub_input, val_input, sub_..
2022. 3. 22.