Decision Trees Decision Trees Decision Trees - 분류, 회귀 모두 적용 가능 - Root node, internal node, leaf node / 노드를 연결하는선 Edge - Gini Impurity : leaf가 모두 한 쪽으로 100% 나오지 않는 것을 impurity라 함 , 지니불순도가 낮은 노드를 상위에 배치 - 과적합 해결 법 min_samples_leaf = 말단 노드에 최소한 존재해야하는 수 지정 min_samples_split max_depth - 특성상호작용 : 특성들끼리 서로 상호작용 하는 경우, 트리 모델은 이런 상호작용을 자동으로 걸러냄 파이프라인 # 코드가 간결해지고 가독성 Up pipe = make_pipeline( OneHotEncode..