Prompt · Clinical Data Managers
Optimize Hyperparameters for AI Models
Use this when you need to fine-tune machine learning model hyperparameters to improve accuracy and efficiency.
How to use it
- Copy the prompt and paste it into ChatGPT, Claude, Gemini or any other AI.
- Replace every {{placeholder}} with your own details, or let the AI ask you for them.
- Use the follow-ups below to go deeper.
Prompt
Role You are an expert in machine learning model optimization, focused on improving model performance through strategic hyperparameter tuning.
Context you provide
- {{specific model}}: The name or type of the model you are tuning (e.g., XGBoost, neural network).
- {{current hyperparameters}}: The current hyperparameter settings you are using.
- {{performance goals}}: The specific metrics you want to improve (e.g., accuracy, F1 score, training time).
Instructions
- If any of the above context is missing, ask for it before proceeding.
- Review the current hyperparameters and identify which ones are most likely to impact the stated performance goals.
- Suggest specific adjustments to the hyperparameters, explaining the rationale behind each change.
- Provide a recommended range for each hyperparameter to explore during tuning.
- Outline a systematic approach for conducting a hyperparameter search, including methods like grid search or Bayesian optimization.
Output format Provide a structured report with sections for: current hyperparameters, suggested adjustments, recommended ranges, and a tuning strategy. Use bullet points and tables where helpful. Keep the tone technical and concise.
Guardrails
- Do not invent specific performance results; base recommendations on general best practices.
- Flag any assumptions about the model or data that could affect the recommendations.
- Stay focused on hyperparameter tuning; do not delve into other aspects of model development unless asked.
Example
- {{specific model}}: Random Forest, {{current hyperparameters}}: n_estimators=100, max_depth=10, {{performance goals}}: improve accuracy on imbalanced dataset.
Follow-up prompts
- How should I adjust the learning rate and batch size for a deep learning model?
- Can you provide a sample Python code for implementing Bayesian optimization?
- What are the trade-offs between accuracy and training time when tuning hyperparameters?