P
📊Analyse de donnéesIntermediateAll AIs

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

Optimize model hyperparameters

Improve this prompt

Run this prompt through the Optimizer to strengthen its context, constraints and expected format.

Improve this prompt with the Optimizer

Comments

  • 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.

Go further

Similar Prompts

Build a recommendation system

Build recommendation systems

0104

Create an automated EDA report

Generate EDA reports automatically

098
📊Analyse de donnéesIntermediateAll AIs

Statistical Power Analysis

Planning a statistical experiment

0121

Create a data strategy proposal

Propose data initiatives strategically

0116