Skip to main content
← CoursesData Science AppliedModule 4 · Causal Inference & A/B TestingPredict: ROC AUC for perfect rankingpredict55 / 100
💬 Discuss🧪 Playground+75 XP
Task
📝 **Question:** What ROC AUC does `roc_auc_score([0, 0, 1, 1], [0.1, 0.2, 0.7, 0.9])` return? 📋 Pick the right answer. 💡 **Hint:** Re-read the theory above if unsure.

Keep going

🔮 Predict the output

Read the code carefully

# Positives (label 1) got scores 0.7 and 0.9
# Negatives (label 0) got scores 0.1 and 0.2
# Every positive ranks ABOVE every negative → perfect ranking
print(1.0)

What will the program print? Write here:

📣 Help someone learn PythonShare this lesson with a friend — the first 15 are free, no signup.Tweet

💬 Discussion

Be the first to ask a question or share a tip.
Sign in to join the discussion. Reading is free.
Loading discussion…