마케팅 애널리틱스: Python으로 고객 이탈 예측하기
Mark Peterson
Director of Data Science, Infoblox
telco['Churn'].value_counts()
no 2850
yes 483
Name: Churn, dtype: int64












| 지표 | 공식 |
|---|---|
| 정밀도 | True Positives / (True Positives + False Positives) |
| 지표 | 공식 |
|---|---|
| 재현율/민감도 | True Positives / (True Positives + False Negatives) |

from sklearn.metrics import confusion_matrixcm = confusion_matrix(y_test, y_pred)
마케팅 애널리틱스: Python으로 고객 이탈 예측하기