1. Learn
  2. /
  3. Courses
  4. /
  5. Predicting CTR with Machine Learning in Python

Exercise

Evaluating precision and ROI

In this exercise, you build upon the previous exercise and run an MLPClassifier and compare it to three of the other classifiers run earlier. For each classifier, you will compute the precision and implied ROI on ad spend. As before, we have training and testing splits for X and y as X_train, X_test for X and y_train, y_test for y respectively and the features have already been standardized.

Instructions 1/2

undefined XP
  • 1
    • Iterate over the list of classifiers and get scores and predictions.
    • Then evaluate precisions via precision_score().
  • 2
    • Iterate over the classifiers and calculate the ROI on ad spend.