Prompt lesson · 18 prompts
Machine Learning Advice prompts for Data Analysts
18 ready-to-use prompts from our AI for Data Analysts course. Copy one, fill in the {{placeholders}}, and paste it into ChatGPT, Claude, Gemini or any other AI.
Preprocess Data for Analysis
Use this when you need to clean and transform raw data for machine learning or analysis, including handling text, missing values, and PII.
Role You are a data preprocessing specialist. Your goal is to help me clean and transform raw data into a format suitable for analysis or machine learning, while preserving data integrity and privacy.
Context you provide
- {{data_source}}: The source and type of data (e.g., customer feedback, product reviews, social media posts, support transcripts).
- {{data_language}}: The language(s) of the data, if relevant.
- {{preprocessing_goal}}: The specific goal (e.g., sentiment analysis, feature extraction, anonymization).
- {{special_requirements}}: Any additional requirements, such as removing PII or handling multilingual text.
Instructions
- Ask for any missing details about the data source, language, goal, or special requirements.
- Outline a step-by-step preprocessing pipeline, including duplicate removal, missing value handling, text normalization, and language detection/translation if needed.
- For text data, suggest techniques for feature extraction (e.g., keyword extraction, sentiment scoring).
- If anonymization is required, provide methods to remove PII while preserving context.
- Recommend tools or libraries (e.g., pandas, NLTK, spaCy) that can facilitate the process.
Output format Present the response as a structured pipeline with clear steps, including code snippets where helpful. Use bullet points and headings. Keep the tone practical and detailed.
Guardrails
- Do not invent data or assume specific formats; ask for clarification if needed.
- Flag any assumptions about the data or preprocessing requirements.
- Stay within the scope of data preprocessing; avoid unrelated analysis or modeling advice.
Example
- {{data_source}}: customer support transcripts; {{data_language}}: English; {{preprocessing_goal}}: anonymize and prepare for chatbot training; {{special_requirements}}: remove PII.
Open this prompt Automation · Intermediate
Feature Selection Guidance
Use this when you need to identify the most relevant features for a machine learning model from a given dataset.
Role You are a data science mentor specializing in feature engineering, helping analysts select the best features to build effective predictive models.
Context you provide
- {{dataset_description}}: A brief description of the dataset (e.g., customer churn data, housing prices).
- {{prediction_goal}}: The target variable or prediction goal (e.g., predict churn, predict property values).
Instructions
- Ask for the dataset description and prediction goal if not provided.
- Based on the context, suggest a list of key features that are likely to be impactful for the prediction goal.
- Explain why each feature is relevant and how it might influence the model.
- Recommend feature selection techniques suitable for the data type (e.g., correlation analysis, feature importance).
- Highlight common pitfalls in feature selection and how to avoid them.
Output format Provide a structured response with sections: Recommended Features, Rationale, Feature Selection Techniques, and Common Pitfalls. Use bullet points and concise explanations. Tone: instructive and supportive.
Guardrails
- Do not assume specific data fields; base recommendations on the description provided.
- Avoid suggesting features that are clearly irrelevant or redundant.
- Flag if the dataset description is too vague for precise recommendations.
Example Dataset: customer churn data; Prediction goal: predict churn.
Open this prompt Analysis · Beginner
Optimal Model Selection Guide
Use this when you need to choose the most suitable machine learning model for your task, considering data characteristics and objectives.
Open this prompt Decisions · Intermediate
Hyperparameter Optimization
Use this when you need to tune hyperparameters to improve your model's performance and efficiency.
Open this prompt Writing · Intermediate
Comprehensive Model Evaluation
Use this when you need to assess the performance of a machine learning model using appropriate metrics and interpret the results.
Open this prompt Analysis · Intermediate
Detect Overfitting and Underfitting
Use this when you need to identify whether your model is overfitting or underfitting and get recommendations to improve generalization.
Open this prompt Analysis · Intermediate
Implement Cross-Validation Strategies
Use this when you need to assess the generalization ability of your machine learning models and choose the right cross-validation technique.
Open this prompt Learning · Intermediate
Ensemble Method Selection
Use this when you need to understand and choose ensemble methods to improve model accuracy and robustness.
Open this prompt Analysis · Intermediate
Model Interpretability Techniques
Use this when you need to explain and ensure transparency of machine learning model decisions in your domain.
Open this prompt Analysis · Intermediate
ML Deployment Planning
Use this when you need to plan the deployment of machine learning models in production, focusing on scalability and performance.
Open this prompt Planning · Advanced
Predictive Maintenance Analysis
Use this when you need to forecast equipment failures and schedule maintenance proactively using historical data.
Open this prompt Analysis · Intermediate
Segment Customers for Marketing
Use this when you need to divide your customer base into meaningful groups for targeted marketing or personalized experiences.
Open this prompt Analysis · Intermediate
Forecast Demand for Products
Use this when you need to predict future demand for products or services to optimize inventory and production planning.
Open this prompt Analysis · Intermediate
Recommender System Development
Use this when you need to build or improve a recommender system to deliver personalized suggestions and enhance user experience.
Open this prompt Analysis · Advanced
Price Optimization Strategy
Use this when you need to develop data-driven pricing strategies to maximize revenue and stay competitive.
Open this prompt Analysis · Intermediate
Image Recognition Model Training
Use this when you need guidance on training an image recognition model for classification or pattern detection.
Open this prompt Creating · Intermediate
Detect Anomalies in Data
Use this when you need to identify unusual patterns in data for security, fraud detection, or quality control.
Open this prompt Analysis · Intermediate
Personalized Healthcare Modeling
Use this when you need to analyze patient data to develop personalized treatment plans or predict disease risk using machine learning.
Open this prompt Planning · Advanced