Any
💻 Coding & Dev
Advanced
Build a Machine Learning Model Pipeline
Design and implement a complete ML pipeline from data to deployed model.
The Prompt
Build a machine learning pipeline for the following: Problem type: [classification / regression / clustering / NLP / computer vision / recommendation / other] Problem description: [describe what you are trying to predict or learn] Data description: [features, target variable, size, format] Success metric: [accuracy / F1 / RMSE / precision / recall / other] Language: [Python] Libraries preference: [scikit-learn / TensorFlow / PyTorch / XGBoost / HuggingFace / other] Deployment target: [REST API / batch processing / edge / other] Data privacy requirements: [any constraints on data usage] Provide a complete ML pipeline: DATA EXPLORATION: - Exploratory data analysis code - Key statistics and distributions to check - Visualisations to create - Data quality assessment DATA PREPROCESSING: - Missing value strategy (per feature type) - Outlier detection and treatment - Feature encoding (categorical variables) - Feature scaling/normalisation - Train/validation/test split strategy FEATURE ENGINEERING: - Feature creation ideas for this problem type - Feature selection approach - Feature importance analysis MODEL SELECTION: - Candidate models for this problem type - Baseline model to beat - Model comparison framework MODEL TRAINING: - Training code for recommended model(s) - Cross-validation setup - Hyperparameter tuning (GridSearch / RandomSearch / Bayesian) - Training monitoring MODEL EVALUATION: - Evaluation metrics code - Confusion matrix and error analysis - Learning curves - Bias and fairness checks MODEL DEPLOYMENT: - Model serialisation - REST API wrapper code - Input validation for inference - Prediction endpoint MONITORING AND MAINTENANCE: - Data drift detection - Model performance monitoring - Retraining trigger criteria - A/B testing new model versions
📝 Fill in the blanks
Replace these placeholders with your own content:
[classification / regression / clustering / NLP / computer vision / recommendation / other]
[describe what you are trying to predict or learn]
[features, target variable, size, format]
[accuracy / F1 / RMSE / precision / recall / other]
[Python]
[scikit-learn / TensorFlow / PyTorch / XGBoost / HuggingFace / other]
[REST API / batch processing / edge / other]
[any constraints on data usage]
How to use this prompt
1
Copy the prompt
Click "Copy Prompt" above to copy the full prompt text to your clipboard.
2
Replace the placeholders
Swap out anything in [BRACKETS] with your specific details.
3
Paste into Any
Open your preferred AI assistant and paste the prompt to get started.