여러가지/Python

섹션 13. Python에서의 회귀 모델 선택

15June 2024. 7. 21. 18:13

Last Step. Evaluating the Model Performance

- r2_score() : 회귀 모델 성능 평가 함수, R-제곱 결정 계수

from sklearn.metrics import r2_score
r2_score(y_test, y_pred)