Binary classification project to predict whether annual income is greater than $50K.
- Target:
income - Metric:
(F1 Score + AUC) / 2
train.csv: 39,073 rows × 15 columnstest.csv: 9,769 rows × 14 columns- Test set does not include
income.
- Loaded train/test datasets
- Checked column types and missing values
- Found missing values in categorical columns:
workclassoccupationnative_country
- Filled categorical missing values using train-set mode as baseline
- Converted target label:
<=50K→ 0>50K→ 1
- Applied one-hot encoding to categorical features
Current preprocessing creates:
X_train:(39073, 105)X_test:(9769, 105)y_train: encoded target labelstest_id: id column for submission
- Confirm preprocessing strategy with team
- Train baseline models
- Evaluate using F1 and AUC
- Generate
prediction.csv