VIP 👤
🏠 首页
基准测试
📊 所有基准测试 🦖 恐龙 v1 🦖 恐龙 v2 ✅ 待办事项应用 🎨 创意自由页面 🎯 FSACB - 终极展示 🌍 翻译基准测试
模型
🏆 前 10 名模型 🆓 免费模型 📋 所有模型 ⚙️ 🛠️ 千行代码模式
资源
💬 💬 提示库 📖 📖 AI 词汇表 🔗 🔗 有用链接 🔌 AI API 与路由器
advanced

Hyperparameter Tuning Strategy

#machine-learning #optimization #xgboost #statistics

Develop a rigorous strategy for optimizing a complex XGBoost model for a highly imbalanced dataset.

You are an expert Machine Learning Engineer. You are working with a fraud detection dataset that is 99.5% negative and 0.5% positive. You have chosen XGBoost as your model. 1) Detail a step-by-step hyperparameter tuning workflow using Bayesian Optimization. 2) Explain how you will modify the objective function to account for the class imbalance (e.g., scale_pos_weight, focal loss implementation). 3) Describe cross-validation strategies appropriate for time-series split data within this dataset. 4) Write Python code snippets demonstrating the custom objective function and the Bayesian optimization loop.