Prompt lesson · 27 prompts
Machine Learning Integration prompts for Software Developers
27 ready-to-use prompts from our AI for Software Developers course. Copy one, fill in the {{placeholders}}, and paste it into ChatGPT, Claude, Gemini or any other AI.
AI-Assisted Feature Engineering
Use this when you need to identify or create impactful features from datasets to improve machine learning model performance.
Role You are a senior data scientist and feature engineering expert, optimizing model performance by identifying and constructing the most predictive features from raw data.
Context you provide
- {{dataset_description}}: A description of the dataset, including columns, data types, and size.
- {{target_variable}}: The outcome you are trying to predict.
- {{model_type}}: The type of model being used (e.g., regression, classification, recommendation).
- {{domain_knowledge}}: Any relevant business or domain context that might inform feature creation.
Instructions
- If any context is missing, ask for it before proceeding.
- Analyze the dataset description to identify potentially predictive features, including raw columns and derived features.
- Suggest new features based on domain knowledge, such as aggregations, ratios, time-based features, or text sentiment scores.
- For text data, recommend specific NLP features like sentiment polarity, topic distributions, or TF-IDF vectors.
- Prioritize features by expected impact and ease of implementation.
- Provide code snippets (e.g., Python with pandas/sklearn) to implement the suggested features.
- Explain how to validate the effectiveness of new features, such as using feature importance or cross-validation.
Output format A structured report with sections: Suggested Features, Implementation Code, and Validation Plan. Use bullet points and code blocks. Tone: technical and practical.
Guardrails
- Do not assume specific data values; base suggestions on the provided description.
- Flag any features that require additional data not in the dataset.
- Stay within the scope of feature engineering, not full model building.
Example Dataset: customer service interactions (text, timestamps, agent ID); Target: customer satisfaction score; Model: gradient boosting; Domain: support quality.
Open this prompt Analysis · Advanced
Machine Learning Model Selection
Use this when you need to choose the most suitable machine learning model for a specific task and dataset, including handling imbalanced data or time-series forecasting.
Role You are an experienced machine learning consultant, helping practitioners select the optimal model and preprocessing steps for their specific data and task.
Context you provide
- {{task_type}}: The type of task (e.g., classification, regression, forecasting).
- {{dataset_description}}: A description of the dataset, including features, target, and any issues like class imbalance.
- {{constraints}}: Any constraints such as interpretability, latency, or computational resources.
- {{deployment_environment}}: Where the model will be deployed (e.g., cloud, edge, real-time).
Instructions
- If any context is missing, ask for it before proceeding.
- Based on the task type and dataset, recommend 2-3 suitable models, explaining the pros and cons of each.
- For classification with imbalanced classes, suggest preprocessing techniques like SMOTE, class weights, or anomaly detection approaches.
- For time-series data, recommend models like ARIMA, Prophet, or LSTM, and outline necessary preprocessing steps (e.g., stationarity, lag features).
- Provide a decision framework or comparison table to help choose the best model.
- Suggest evaluation metrics appropriate for the task (e.g., F1-score for imbalanced, RMSE for regression).
- Highlight potential pitfalls and how to mitigate them.
Output format A structured recommendation with sections: Model Options, Preprocessing Steps, Evaluation Metrics, and Decision Framework. Use tables where helpful. Tone: technical and advisory.
Guardrails
- Do not claim a model is universally best; base recommendations on the provided context.
- Flag assumptions about data size or quality.
- Stay within model selection and preprocessing, not full implementation.
Example Task: classification; Dataset: customer feedback with 90% negative, 10% positive; Constraints: interpretability; Deployment: batch processing.
Open this prompt Decisions · Advanced
Train Machine Learning Models
Use this when you need a step-by-step guide to train a machine learning model, including transfer learning and advanced techniques.
Open this prompt Learning · Advanced
Design a Hyperparameter Tuning Strategy
Use this when you need to plan a systematic approach to optimize model hyperparameters for better performance.
Open this prompt Planning · Advanced
Model Evaluation Framework Design
Use this when you need to create a systematic framework for evaluating the performance of a trained machine learning model.
Open this prompt Writing · Advanced
Model Deployment Pipeline Plan
Use this when you need to plan and execute a safe, scalable deployment of a machine learning model into production.
Open this prompt Planning · Intermediate
Deployed Model Monitoring System
Use this when you need to design a continuous monitoring system for a deployed machine learning model, including metrics, alerts, and feedback loops.
Open this prompt Automation · Advanced
Conduct Error Analysis for Model Improvement
Use this when you need to systematically analyze model errors to identify patterns and propose improvements.
Open this prompt Analysis · Advanced
Automated Model Retraining Script
Use this when you need to create a script or tool that automates the retraining of a machine learning model with new data, including progress logging and performance summary.
Open this prompt Automation · Advanced
AI Model Explainability Design
Use this when you need to design systems that provide clear explanations for machine learning model predictions.
Open this prompt Creating · Advanced
Performance Optimization System Design
Use this when you need to design a system that optimizes performance for real-time or large-scale data processing.
Open this prompt Creating · Intermediate
Data Visualization from Raw Data
Use this when you have raw data or model outputs and need to create visual reports, charts, or interactive dashboards that highlight key trends and insights.
Open this prompt Creating · Intermediate
Design a Transfer Learning Pipeline
Use this when you need to adapt a pre-trained model to a new task efficiently, with guidance on strategy, pipeline, and evaluation.
Open this prompt Coding · Intermediate
Model Ensemble Chatbot Development
Use this when you need to design a chatbot or system that combines predictions from multiple AI models.
Open this prompt Coding · Advanced
Anomaly Detection System Design
Use this when you need a step-by-step guide to design and implement an anomaly detection algorithm for a specific domain like manufacturing, finance, or cybersecurity.
Open this prompt Coding · Advanced
Build NLP Tools with AI
Use this when you need to develop natural language processing tools such as sentiment analysis, language translation, or text classification.
Open this prompt Writing · Advanced
Design a Recommendation System Plan
Use this when you need a step-by-step plan for building a personalized recommendation system, covering algorithm choice, data requirements, and evaluation metrics.
Open this prompt Planning · Advanced
Time Series Analysis and Prediction
Use this when you need to analyze time-dependent data, detect patterns, and build predictive models.
Open this prompt Analysis · Intermediate
Design Reinforcement Learning Algorithms
Use this when you need to design or implement a reinforcement learning algorithm for an agent that learns from environment interactions.
Open this prompt Creating · Intermediate
Sentiment Analysis Model Development
Use this when you need to build a sentiment analysis model for customer feedback analysis.
Open this prompt Coding · Intermediate
Fraud Detection System Development Plan
Use this when you need a structured plan for building a machine learning-based fraud detection system with real-time monitoring.
Open this prompt Planning · Advanced
Build Customer Segmentation Model
Use this when you need to develop a machine learning model to segment customers based on behavior and demographics.
Open this prompt Coding · Advanced
Recommendation Engine Design and Development
Use this when you need to design, build, or improve a recommendation engine that personalizes suggestions based on user behavior and data.
Open this prompt Creating · Advanced
Image Recognition System Development Plan
Use this when you need a step-by-step plan to build an image recognition system for a specific use case, covering data, model, and deployment.
Open this prompt Planning · Intermediate
Predictive Maintenance Model Guides
Use this when you need to design a predictive maintenance system that forecasts equipment failures using historical data and integrates into operational workflows.
Open this prompt Planning · Intermediate
Design Anomaly Detection System
Use this when you need to design an anomaly detection system for identifying unusual patterns in large datasets, balancing accuracy and scalability.
Open this prompt Creating · Advanced
Integrate ChatGPT with Chatbot for Customer Support
Use this when you need to design a plan to integrate ChatGPT with an existing chatbot system to provide intelligent responses to customer inquiries.
Open this prompt Creating · Advanced