Prevedere il CTR con il Machine Learning in Python
Kevin Huo
Instructor

print(confusion_matrix(y_test, y_pred))
[[8163 166]
[1517 154]]
# Order: tn, fp, fn, tp
print(confusion_matrix(y_test, y_pred).ravel())
[8163, 166, 1517, 154]
c e un ritorno r per X impressiontotal_return = tp * r
total_cost = (tp + fp) * c
tp * r > (tp + fp) * c
roi = total_return / total_spent
Prevedere il CTR con il Machine Learning in Python