Prevedere il CTR con il Machine Learning in Python
Kevin Huo
Instructor
Precisione: ROI sulla spesa adv tramite clic
Richiamo (recall): raggiungere il pubblico giusto
Può avere senso pesare diversamente le due metriche
$$F_\beta = (1+\beta^2)\cdot\frac{\text{precision}\cdot\text{recall}}{(\beta^2 \cdot \text{precision}) + \text{recall}}$$
Coefficiente beta: indica il peso relativo delle due metriche
Implementazione in sklearn: fbeta_score(y_true, y_pred, beta)
y_true = target reali, y_pred = target previstiroc_auc = roc_auc_score(y_test, y_score[:, 1])
fpr = 1 - tn / (tn + fp)
precision = tp / (tp + fp)
fpr può essere basso anche con precision bassa.fpr = 1 - 100 / (100 + 10) = 0.091
precision = tp / (tp + fp) = 0.5
F-beta scorec e ritorno rtotal_return = tp * r
total_spent = (tp + fp) * cost
roi = total_return / total_spent
= (tp) / (tp + fp) * (r / cost)
= precision * (r / cost)
Prevedere il CTR con il Machine Learning in Python