การพยากรณ์ CTR ด้วย Machine Learning ใน Python
Kevin Huo
Instructor
Precision: ROI จากค่าใช้จ่ายโฆษณาผ่านการคลิก
Recall: การเข้าถึงกลุ่มเป้าหมายที่เกี่ยวข้อง
อาจสมเหตุสมผลที่จะให้น้ำหนักต่างกัน
$$F_\beta = (1+\beta^2)\cdot\frac{\text{precision}\cdot\text{recall}}{(\beta^2 \cdot \text{precision}) + \text{recall}}$$
Beta coefficient: แสดงถึงน้ำหนักสัมพัทธ์ของสองเมตริก
สามารถใช้งานใน sklearn ผ่าน: fbeta_score(y_true, y_pred, beta=beta)
y_true คือค่าเป้าหมายจริง และ y_pred คือค่าเป้าหมายที่ทำนายroc_auc = roc_auc_score(y_test, y_score[:, 1])
fpr = 1 - tn / (tn + fp)
precision = tp / (tp + fp)
fpr อาจต่ำได้แม้ว่า precision จะต่ำเช่นกันfpr = 1 - 100 / (100 + 10) = 0.091
precision = tp / (tp + fp) = 0.5
F-beta scorec และผลตอบแทน rtotal_return = tp * r
total_spent = (tp + fp) * cost
roi = total_return / total_spent
= (tp) / (tp + fp) * (r / cost)
= precision * (r / cost)
การพยากรณ์ CTR ด้วย Machine Learning ใน Python