Marketinganalyse: klantverloop voorspellen in Python
Mark Peterson
Director of Data Science, Infoblox
telco['Churn'].value_counts()
no 2850
yes 483
Name: Churn, dtype: int64












| Maatstaf | Formule |
|---|---|
| Precisie | True Positives / (True Positives + False Positives) |
| Maatstaf | Formule |
|---|---|
| Recall/Gevoeligheid | True Positives / (True Positives + False Negatives) |

from sklearn.metrics import confusion_matrixcm = confusion_matrix(y_test, y_pred)
Marketinganalyse: klantverloop voorspellen in Python