VIP 👤
🏠 Accueil
Benchmarks
📊 Tous les Benchmarks 🦖 Dinosaure v1 🦖 Dinosaure v2 ✅ To-Do List Apps 🎨 Pages Libres 🎯 FSACB - Showcase 🌍 Traduction
Modèles
🏆 Top 10 Modèles 🆓 Modèles Gratuits 📋 Tous les Modèles ⚙️ Modes Kilo Code
Ressources
💬 Prompts IA 📖 Glossaire IA 🔗 Liens Utiles 🔌 API & Routeurs
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.