การเลือกตัวแปร

การวิเคราะห์เชิงพยากรณ์เบื้องต้นด้วย Python

Nele Verbiest, Ph.D

Data Scientist @PythonPredictions

ตัวทำนายที่เป็นตัวเลือก

  • age
  • max_gift
  • income_low
  • min_gift, mean_gift, median_gift
  • country_USA, country_India, country_UK
  • number_gift_min50, number_gift_min100, number_gift_min150
การวิเคราะห์เชิงพยากรณ์เบื้องต้นด้วย Python

การเลือกตัวแปร: แรงจูงใจ

ข้อเสียของโมเดลที่มีตัวแปรจำนวนมาก:

  • การ over-fitting
  • ดูแลและนำไปใช้งานได้ยาก
  • ตีความได้ยาก และเกิด multi-collinearity
การวิเคราะห์เชิงพยากรณ์เบื้องต้นด้วย Python

การประเมินโมเดล: AUC

import numpy as np
from sklearn.metrics import roc_auc_score
roc_auc_score(true_target, prob_target)
การวิเคราะห์เชิงพยากรณ์เบื้องต้นด้วย Python

มาฝึกกันเถอะ!

การวิเคราะห์เชิงพยากรณ์เบื้องต้นด้วย Python

Preparing Video For Download...