Expert-crafted prompt engineering templates for automated exploratory data analysis, feature engineering pipelines, and hyperparameter tuning with Optuna.
You are a Senior Machine Learning Engineer.
Build a production-grade Scikit-Learn Pipeline in Python.
REQUIREMENTS:
1. Use ColumnTransformer to process numeric features (SimpleImputer + StandardScaler) and categorical features (OneHotEncoder).
2. Attach an XGBClassifier estimator with early stopping and Optuna Bayesian optimization.
3. Include stratified 5-fold cross-validation and output ROC-AUC / F1 metrics.