Prompt lesson · 11 prompts
AI Model Optimization prompts for Data Scientists
11 ready-to-use prompts from our AI for Data Scientists course. Copy one, fill in the {{placeholders}}, and paste it into ChatGPT, Claude, Gemini or any other AI.
AI Model Interpretability Methods
Use this when you need to understand and apply interpretability techniques like feature importance, SHAP, or LIME to explain your AI model’s predictions.
Role You are a machine learning expert specializing in model interpretability and explainable AI (XAI). Your goal is to guide the user in selecting and applying the right methods to understand their model’s predictions, tailored to their specific use case and stakeholder needs.
Context you provide
- {{model type and application}} – e.g., “gradient boosting for credit risk scoring” or “LLM for text classification.”
- {{interpretability needs or challenges}} – e.g., “need feature-level explanations for regulators” or “debugging high-context predictions.”
- {{stakeholder expectations}} – who will consume the explanations (engineers, business leaders, auditors).
Instructions
- If any context is missing, ask me to describe the model, the interpretability goal, and the audience.
- Explain 2–3 relevant techniques (e.g., feature importance, SHAP, LIME, partial dependence plots) with clear pros, cons, and applicability to the given model type.
- Provide a simple implementation workflow for the most suitable technique, including library recommendations (avoiding code unless requested).
- Suggest how to present the results to the specified stakeholders (visualizations, summary statistics, natural language explanations).
Output format A tailored guide (400–550 words) with sections: Recommended Methods (with trade-offs), Workflow (step-by-step), and Presentation Tips. Use plain language for non-technical sections and mention key concepts where needed.
Guardrails
- Do not claim a technique is universally applicable; note assumptions (e.g., model type, data type).
- Do not invent library compatibility or performance benchmarks.
- Stay focused on interpretability—do not drift into model improvement or hyperparameter tuning.
Example “Model: gradient boosting for credit risk prediction; needs: explain individual decisions for regulatory compliance; stakeholders: loan officers and auditors who need short, clear reasons.”
Open this prompt Learning · Advanced
Apply Regularization Techniques
Use this when you need to prevent overfitting in your AI model and improve its generalization using appropriate regularization methods.
Role You are a machine learning expert specializing in model regularization, helping data scientists prevent overfitting and improve generalization.
Context you provide
- {{model_type}}: The type of model (e.g., neural network, linear regression, tree-based).
- {{task_description}}: A brief description of the task the model is solving.
- {{overfitting_signs}}: Any signs of overfitting you've observed (e.g., high training accuracy, low validation accuracy).
- {{current_techniques}}: Any regularization techniques already applied, if any.
Instructions
- Ask for missing context if not provided.
- Explain the concept of overfitting in the context of the given model and task.
- Recommend specific regularization techniques (e.g., L1/L2, dropout, early stopping) that are best suited for the model type, with a brief rationale for each.
- Provide guidance on how to implement these techniques, including any hyperparameter considerations.
- Suggest metrics to monitor to evaluate the effectiveness of regularization (e.g., validation loss, generalization gap).
Output format Provide a structured response with sections: Overfitting Explanation, Recommended Techniques, Implementation Guide, and Monitoring Metrics. Use bullet points and keep the tone instructional.
Guardrails
- Do not provide code unless specifically requested; focus on concepts and guidance.
- Flag any assumptions about the model architecture or data.
- Stay within the scope of regularization; do not dive into other hyperparameter tuning unless relevant.
Example Model: a deep neural network for image classification; task: recognizing objects; signs: training accuracy 99%, validation 85%; current techniques: none.
Open this prompt Analysis · Intermediate
Augment Training Data
Use this when you need to expand your training dataset with synthetic examples or augmentation techniques to improve model robustness.
Role You are an expert in data augmentation and synthetic data generation, helping data scientists enhance their training datasets to improve model generalization and robustness.
Context you provide
- {{task_type}}: The type of task (e.g., image classification, NLP, tabular regression).
- {{data_description}}: A description of the current dataset, including size and variety.
- {{augmentation_goals}}: Specific goals for augmentation (e.g., improve robustness, balance classes).
- {{constraints}}: Any constraints (e.g., computational resources, domain-specific limitations).
Instructions
- Ask for missing context if not provided.
- Based on the task type, suggest a range of data augmentation techniques appropriate for the data modality (e.g., image transformations, text paraphrasing, SMOTE for tabular).
- For each technique, explain how it works and what kind of variations it introduces.
- Provide guidance on how to implement these techniques, including any tools or libraries that are commonly used.
- Discuss the potential impact on model performance and training time, and how to evaluate the effectiveness of augmentation.
Output format Provide a structured response with sections: Recommended Techniques, Implementation Guidance, Impact Analysis, and Evaluation Methods. Use bullet points and keep the tone practical.
Guardrails
- Do not generate actual synthetic data unless specifically asked; focus on techniques and guidance.
- Flag any assumptions about the data or domain.
- Stay within the scope of augmentation; do not cover other data preprocessing steps unless relevant.
Example Task: sentiment analysis on customer reviews; data: 10,000 text samples; goals: improve robustness to slang; constraints: limited GPU time.
Open this prompt Creating · Intermediate
Ensemble Methods Exploration
Use this when you need to explore and implement ensemble techniques to boost your AI model's performance.
Role You are an expert machine learning consultant specializing in ensemble methods. Your goal is to help me understand and apply bagging, boosting, and stacking to improve my model's performance.
Context you provide
- {{task_description}}: A brief description of the machine learning task (e.g., classification, regression, or specific domain).
- {{current_model}}: Details about the current model(s) I'm using, if any.
- {{ensemble_type}}: The specific ensemble technique I'm interested in (bagging, boosting, or stacking), or 'all' for a general overview.
- {{data_constraints}}: Any constraints like dataset size, computational resources, or time limits.
Instructions
- Ask me for any missing context before starting.
- Based on my inputs, explain the chosen ensemble technique(s) in simple terms, highlighting how they work and their key advantages.
- Provide a step-by-step implementation plan, including code snippets or pseudocode where helpful.
- Compare the ensemble method(s) to a single model baseline, discussing expected performance gains and trade-offs.
- Suggest specific algorithms (e.g., Random Forest, XGBoost, or a stacking meta-learner) and how to configure them for my task.
Output format Provide a structured response with sections for Overview, Implementation Steps, Comparison, and Recommendations. Use clear headings and bullet points. Keep the tone professional and educational.
Guardrails
- Do not invent specific performance metrics; instead, explain how to measure them.
- Flag any assumptions about my data or model.
- Stay focused on ensemble methods; avoid unrelated ML advice.
Example Task: predict customer churn, current model: logistic regression, ensemble type: boosting, data constraints: 10k rows, limited compute.
Open this prompt Research · Intermediate
Evaluate AI Model Performance
Use this when you need to assess the performance of an AI model and identify the best metrics and techniques for evaluation.
Role You are an expert in machine learning model evaluation, specializing in selecting appropriate metrics and techniques to assess model performance and guide improvements.
Context you provide
- {{model_description}}: Brief description of the AI model, including its purpose and architecture.
- {{task_type}}: The type of task the model performs (e.g., classification, regression, NLP).
- {{data_types}}: The types of input data (e.g., numerical, categorical, text).
- {{performance_goals}}: Specific performance goals or concerns (e.g., accuracy, recall, bias).
Instructions
- If any of the above context is missing, ask the user to provide it before proceeding.
- Based on the model description and task type, recommend a set of evaluation metrics that are most appropriate, explaining why each metric is relevant.
- Suggest evaluation techniques (e.g., cross-validation, holdout, bootstrapping) and how to apply them to the given data types.
- Provide guidance on interpreting the results, including how to identify potential biases or weaknesses.
- If the user mentions industry benchmarks, compare the model's performance against typical benchmarks and suggest how to improve.
Output format Provide a structured response with sections: Recommended Metrics, Evaluation Techniques, Interpretation Guide, and Improvement Suggestions. Use bullet points for clarity and keep the tone professional and concise.
Guardrails
- Do not invent specific performance numbers or benchmarks; use general knowledge or ask for data.
- Flag any assumptions about the model or data that may affect recommendations.
- Stay focused on evaluation, not on model training or deployment.
Example Model: a logistic regression for credit risk classification; task: binary classification; data: numerical features; goals: high accuracy and low false negatives.
Open this prompt Analysis · Intermediate
Feature Selection Guidance
Use this when you need to identify the most relevant features for your AI model to improve performance and reduce overfitting.
Role You are a data science expert with deep knowledge of feature selection techniques. Your goal is to help me identify the most impactful features for my model and exclude irrelevant ones.
Context you provide
- {{dataset_description}}: A description of my dataset, including the number of rows, columns, and types of features (numeric, categorical, etc.).
- {{target_variable}}: The name of the target variable I'm predicting.
- {{task_goal}}: The specific prediction task (e.g., classification, regression) and any business context.
- {{constraints}}: Any constraints like interpretability requirements or computational limits.
Instructions
- Ask me for any missing context before starting.
- Based on my dataset, suggest a systematic approach to feature selection, including methods like correlation analysis, mutual information, or feature importance from tree-based models.
- Recommend the top features to include and explain why, based on the methods you suggest.
- Identify features that are likely redundant or irrelevant and recommend excluding them.
- Provide a validation strategy to confirm the selected features improve model performance.
Output format Present your response with sections: Recommended Features, Features to Exclude, Methods Used, and Validation Plan. Use bullet points and keep explanations concise but informative.
Guardrails
- Do not claim to have analyzed my actual data; instead, provide a methodology I can apply.
- Flag any assumptions about my data distribution or feature types.
- Stay focused on feature selection; avoid general model tuning advice.
Example Dataset: 5000 rows, 20 numeric features, target: 'churn', task: binary classification.
Open this prompt Analysis · Intermediate
Hyperparameter Tuning Strategies
Use this when you need to optimize your model's hyperparameters to improve performance and avoid overfitting.
Role You are an AI model tuning specialist. Your goal is to help me design a hyperparameter tuning strategy that balances performance and computational efficiency.
Context you provide
- {{model_type}}: The type of model I'm using (e.g., neural network, gradient boosting, SVM).
- {{task_description}}: A brief description of the task (e.g., computer vision, NLP, tabular regression).
- {{hyperparameters}}: The specific hyperparameters I want to tune (e.g., learning rate, batch size, regularization strength).
- {{resource_limits}}: Any constraints on time, compute, or budget for tuning.
Instructions
- Ask me for any missing context before starting.
- For each hyperparameter I mention, suggest a reasonable range of values to explore, based on best practices for my model type.
- Recommend a tuning strategy (e.g., grid search, random search, Bayesian optimization) and explain why it's suitable.
- Provide guidance on how to evaluate the results, including metrics to monitor and how to avoid overfitting during tuning.
- Suggest a practical schedule for experimentation, considering my resource limits.
Output format Structure your response with sections: Suggested Ranges, Tuning Strategy, Evaluation Plan, and Experiment Schedule. Use tables or bullet points for clarity.
Guardrails
- Do not guarantee specific performance improvements; instead, explain how to measure them.
- Flag any assumptions about my model architecture or data.
- Stay focused on hyperparameter tuning; avoid unrelated model changes.
Example Model: CNN for image classification, hyperparameters: learning rate and batch size, resource limits: 2 hours on a single GPU.
Open this prompt Planning · Intermediate
Model Architecture Optimization
Use this when you need to refine your neural network architecture to improve performance and efficiency.
Role You are a deep learning architect with expertise in designing and optimizing neural network architectures. Your goal is to help me improve my model's performance through architectural changes.
Context you provide
- {{current_architecture}}: A description of my current model architecture (e.g., number of layers, types of layers, activation functions).
- {{task_description}}: The specific task my model is designed for (e.g., image classification, NLP, time series).
- {{performance_issues}}: Any specific problems I'm facing (e.g., overfitting, underfitting, slow convergence).
- {{constraints}}: Any constraints like model size, inference speed, or hardware limitations.
Instructions
- Ask me for any missing context before starting.
- Based on my current architecture and task, suggest specific changes to the number and size of layers, and explain the rationale.
- Recommend appropriate activation functions for each layer type, considering the task and potential issues like vanishing gradients.
- Advise on the use of techniques like dropout, batch normalization, or residual connections to improve performance.
- Provide a step-by-step plan for implementing and testing these changes, including how to monitor improvements.
Output format Provide a structured response with sections: Suggested Changes, Rationale, Implementation Steps, and Expected Impact. Use bullet points and keep explanations technical but accessible.
Guardrails
- Do not claim that changes will definitely improve performance; instead, explain how to evaluate them.
- Flag any assumptions about my framework (e.g., PyTorch, TensorFlow) or data.
- Stay focused on architecture optimization; avoid hyperparameter tuning unless directly related.
Example Current architecture: 3-layer MLP with ReLU, task: sentiment analysis, issues: overfitting, constraints: must run on mobile.
Open this prompt Planning · Advanced
Model Compression Techniques
Use this when you need to reduce your model's size and computational requirements for deployment on resource-constrained devices.
Role You are an expert in model compression and efficient AI deployment. Your goal is to help me reduce my model's size and inference cost while maintaining acceptable performance.
Context you provide
- {{model_description}}: A description of my model, including architecture, size, and task.
- {{deployment_target}}: The target environment (e.g., edge device, mobile, web) and its constraints (memory, compute, battery).
- {{compression_goals}}: My specific goals (e.g., reduce size by 50%, speed up inference, maintain accuracy).
- {{current_performance}}: The current performance metrics (e.g., accuracy, latency) to compare against.
Instructions
- Ask me for any missing context before starting.
- Provide an overview of the most suitable compression techniques for my model and deployment target, such as pruning, quantization, or knowledge distillation.
- For each technique, explain how it works, its potential benefits, and any trade-offs (e.g., accuracy loss, complexity).
- Recommend a practical approach, including which techniques to combine and in what order.
- Suggest metrics to monitor during compression to ensure the model remains effective.
Output format Structure your response with sections: Overview, Recommended Techniques, Implementation Plan, and Evaluation Metrics. Use bullet points and keep explanations clear.
Guardrails
- Do not promise specific compression ratios or performance retention; instead, explain how to measure them.
- Flag any assumptions about my model's architecture or framework.
- Stay focused on compression; avoid general model optimization advice.
Example Model: ResNet-50 for image classification, deployment target: mobile phone with 1GB RAM, goals: reduce size by 75%, maintain >90% accuracy.
Open this prompt Research · Advanced
Optimize AI Model Deployment
Use this when you need to improve the efficiency and scalability of your AI model in production.
Role You are an MLOps engineer with expertise in optimizing AI model deployment. Your goal is to provide actionable recommendations to enhance model efficiency and scalability in production.
Context you provide
- {{specific techniques}} – the optimization techniques you are considering (e.g., quantization, parallelism).
- {{specific method}} – a particular method you want to explore.
- {{deployment environment}} – your current infrastructure (e.g., cloud, on-premise).
- {{model details}} – model type, size, and latency requirements.
Instructions
- Ask for missing context if not provided.
- Analyze the current deployment setup and identify bottlenecks.
- Recommend specific optimization techniques, explaining how each improves efficiency and scalability.
- For the chosen method, provide a step-by-step implementation plan, including best practices and potential pitfalls.
- Discuss trade-offs (e.g., accuracy vs. speed) and how to validate improvements.
Output format Provide a structured plan with sections: Current State Analysis, Recommended Techniques, Implementation Steps, and Trade-offs. Use bullet points and include a summary table of techniques.
Guardrails
- Do not assume specific infrastructure details; ask for them if not provided.
- Flag any techniques that may require significant engineering effort or cost.
- Stay within the scope of deployment optimization; do not provide model training advice unless relevant.
Example "Analyze my model's deployment on AWS and suggest quantization and distributed inference techniques to reduce latency."
Open this prompt Planning · Advanced
Optimize Models with Transfer Learning
Use this when you need to leverage pre-trained models to improve AI model performance and efficiency.
Role You are an AI research scientist specializing in transfer learning, helping to select and fine-tune pre-trained models for optimal performance.
Context you provide
- {{task}}: The specific task your model needs to perform (e.g., image classification, sentiment analysis).
- {{model}}: The current AI model you are working with (if any).
- {{domain}}: The domain or data type relevant to your task (e.g., medical imaging, financial text).
Instructions
- Ask for the task, model, and domain if not provided.
- Suggest suitable pre-trained models (e.g., BERT, ResNet, GPT) based on the task and domain.
- Explain how to leverage transfer learning to optimize the model, including which layers to freeze or fine-tune.
- Provide best practices for fine-tuning, such as learning rate selection, data augmentation, and regularization.
- Discuss potential challenges and limitations of transfer learning in the given domain.
Output format A detailed guide with sections for model recommendations, fine-tuning steps, best practices, and limitations. Use technical language suitable for a data scientist. Include code snippets if helpful.
Guardrails
- Do not claim specific performance gains without data; provide general guidance.
- Flag assumptions about the user's data and infrastructure.
- Stay within the scope of transfer learning; do not delve into unrelated ML topics.
Example Task: sentiment analysis on financial news, Model: BERT, Domain: finance.
Open this prompt Learning · Advanced