Last Step. Evaluating the Model Performance
- r2_score() : 회귀 모델 성능 평가 함수, R-제곱 결정 계수
from sklearn.metrics import r2_score
r2_score(y_test, y_pred)
'여러가지 > Python' 카테고리의 다른 글
섹션 17. K-Nearest Neighbors (K-NN) (0) | 2024.08.03 |
---|---|
섹션 16. 로지스틱 회귀 (Logistic Regression) (0) | 2024.08.03 |
섹션 12. R-제곱(Squared) (0) | 2024.07.20 |
섹션 11. 랜덤 포레스트 회귀 (Random Forest Intuition) (0) | 2024.07.20 |
섹션 10. 의사 결정 트리 회귀 (Decision Tree Intuition) (0) | 2024.07.20 |