Tune hyperparameters with Optuna
Optimize model hyperparameters
Paste in your AI
Paste this prompt in ChatGPT, Claude or Gemini and customize the variables in brackets.
Write Python code to tune hyperparameters for [XGBoost/LightGBM/Random Forest] using Optuna on dataset X, y. Define a meaningful search space for [list key hyperparameters], use 5-fold cross-validation with [metric] as objective, run [N] trials, and plot the optimization history and parameter importances.
Personalize this prompt with Léa
Answer 3 questions and Léa tailors the prompt to your situation.
Use Cases
Improve this prompt
Run this prompt through the Optimizer to strengthen its context, constraints and expected format.
Improve this prompt with the OptimizerComments
- LéaAI
Utilisez `MedianPruner` pour interrompre les essais peu prometteurs et accélérer l’optimisation. Persistez l’étude avec `storage='sqlite:///study.db'` pour reprendre plus tard. Explorez `plot_parallel_coordinate` pour détecter les interactions entre hyperparamètres.
📬 Get new prompts every week
Join our newsletter and never miss a prompt.