Evaluating the model

Phân tích Nhân sự (HR Analytics): Dự đoán nghỉ việc bằng Python

Hrant Davtyan

Assistant Professor of Data Science American University of Armenia

Prediction errors

img

Phân tích Nhân sự (HR Analytics): Dự đoán nghỉ việc bằng Python

Evaluation metrics (1)

  • If target is leavers, focus on FN
    • Recall score = TP/(TP+FN)
    • Lower FN, higher Recall score
    • Recall score - % of correct predictions among 1s (leavers)
  • If target is stayers, focus on FP
    • Specificity = TN/(TN+FP)
    • Lower FP, higher Specificity,
    • Specificity - % of correct predictions among 0s (stayers)
Phân tích Nhân sự (HR Analytics): Dự đoán nghỉ việc bằng Python

Evaluation metrics (2)

  • Even if target is leavers, you may still focus on FP:
    • Precision score = TP/(TP+FP)
    • Lower FP, higher Precision score
    • Precision score - % of leavers in reality, among those predicted to leave
Phân tích Nhân sự (HR Analytics): Dự đoán nghỉ việc bằng Python

Let's practice!

Phân tích Nhân sự (HR Analytics): Dự đoán nghỉ việc bằng Python

Preparing Video For Download...