Problem 4: Compare AUC Across Different Feature Sets
Easypython
Problem Description
Write a Python program that trains two Logistic Regression models — one using only 1 feature, one using 2 features — on the same dataset, and compares their AUC scores to see if the additional feature improves performance.
Input
A labeled dataset with 2 features.
Output
AUC scores for both models.
Constraints
- At least 10 labeled examples.
Example Input
text(A labeled dataset with features "hours_studied" and "attendance")
Example Output
textAUC with 1 feature: 0.85 AUC with 2 features: 0.93
Concepts Covered
roc_auc_score(), feature comparison.