Skip to content
C

Problem 2: Calculate AUC for Two Different Models

Easypython

Problem Description

Write a Python program that trains both a Logistic Regression model and a Decision Tree model on the same dataset, and compares their AUC scores.

Input

A labeled dataset.

Output

The AUC score for both models.

Constraints

  • At least 10 labeled examples.

Example Input

text
(A labeled binary classification dataset)

Example Output

text
Logistic Regression AUC: 0.92 Decision Tree AUC: 0.85

Concepts Covered

roc_auc_score(), model comparison.

Input (stdin)

Output

Run your code to see output here...