When using a ColumnTransformer to handle mixed data types, the key metric depends on the task:
- For classification: Accuracy, Precision, Recall, and F1-score matter because they show how well the model predicts different classes after proper data processing.
- For regression: Mean Squared Error (MSE) or R-squared show how well the model predicts continuous values after transforming columns correctly.
Why? Because ColumnTransformer ensures each data type is processed properly (e.g., numbers scaled, categories encoded). If the transformer works well, the model's performance metrics improve.