VIP 👤
🏠 Beranda
Benchmark
📊 Semua Benchmark 🦖 Dinosaurus v1 🦖 Dinosaurus v2 ✅ Aplikasi To-Do List 🎨 Halaman Bebas Kreatif 🎯 FSACB - Showcase Utama 🌍 Benchmark Terjemahan
Model
🏆 Top 10 Model 🆓 Model Gratis 📋 Semua Model ⚙️ Kilo Code
Sumber Daya
💬 Perpustakaan Prompt 📖 Glosarium AI 🔗 Tautan Berguna 🔌 API & Router AI
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.