※ 여러 요소의 데이터 집합(고차원 데이터 집합)에 적합하다.
● URL : https://colab.research.google.com/drive/1-Gm8bfp7_8h4rs39JUa2GoaryumOuPRm#scrollTo=pLVaXoYVU_Uy
● CART
: 범주화 회귀 나무, 즉, 범주화 나무(Classification Trees), 회귀 나무(Regression Trees) 모두 포괄
- 범주화 나무(Classification Trees): 범주 예측
- 회귀 나무(Regression Trees) : 연속적 수치값 예측
(+) 정보 엔트로피
Step 1. Importing the libraries
Step 2. Importing the dataset
Step 3. Training the Decision Tree Regression model on the whole dataset
--------------------------------------------------------------------------------------------------------------------------------------------------------------------
(1) random_state = 0 : 무작위성에 관여하는 모든 함수들이 항상 같은 순서로 같은 값을 생성하게 되어 일관된 결과 보장
--------------------------------------------------------------------------------------------------------------------------------------------------------------------
Step 4. Predicting a new result
Step 5. Visualising the Decision Tree Regression results (higher resolution)
(급여 수준 사이에 계단 한개)
'여러가지 > Python' 카테고리의 다른 글
섹션 12. R-제곱(Squared) (0) | 2024.07.20 |
---|---|
섹션 11. 랜덤 포레스트 회귀 (Random Forest Intuition) (0) | 2024.07.20 |
섹션 9. 서포트 벡터 회귀 (SVR, Support Vector Regression) (0) | 2024.07.19 |
섹션 8. 다항식 회귀 (Polynomial Linear Regression) (0) | 2024.07.18 |
섹션 7. 다중 선형 회귀 (Multiple Linear Regression) (0) | 2024.07.15 |