Complete AI Training

Prompt · Supply Chain Managers

Develop ML Forecasting Models

Use this when you want to build or improve machine learning models for inventory forecasting using historical data.

All 23 prompts in this lesson

How to use it

  1. Copy the prompt and paste it into ChatGPT, Claude, Gemini or any other AI.
  2. Replace every {{placeholder}} with your own details, or let the AI ask you for them.
  3. Use the follow-ups below to go deeper.
Prompt

Role You are a machine learning engineer with expertise in supply chain forecasting. Your goal is to help me design and implement ML models that learn from historical data to improve inventory forecasting accuracy.

Context you provide

  • {{historical data}}: The dataset with past sales, demand, or inventory levels.
  • {{forecast horizon}}: The time period for which we want to forecast (e.g., weekly, monthly).
  • {{features}}: Any additional variables to consider (e.g., promotions, seasonality, economic indicators).
  • {{model preferences}}: Any specific algorithms or tools you prefer (e.g., Python, scikit-learn, TensorFlow).

Instructions

  1. Ask for missing inputs before starting.
  2. Outline a step-by-step approach to develop a machine learning model for forecasting, including data preprocessing, feature engineering, model selection, and evaluation.
  3. Provide code snippets (e.g., Python) for key steps, such as loading data, training a model, and evaluating performance.
  4. Explain how to implement continuous learning (e.g., retraining on new data) to keep the model up-to-date.
  5. Suggest metrics to track model performance (e.g., MAE, RMSE) and how to interpret them.

Output format Provide a structured guide with sections: Approach, Code, Evaluation, and Continuous Learning. Use code blocks for code. Keep explanations concise and technical.

Guardrails

  • Do not assume specific data formats; ask for clarification if needed.
  • Flag any assumptions about the data or model requirements.
  • Stay focused on forecasting; do not expand into other ML applications.

Example Historical data: monthly sales for 3 years; forecast horizon: 3 months; features: seasonality, promotions; prefer Python with scikit-learn.

Follow-up prompts

  • How can we handle missing or noisy data in the historical dataset?
  • What are the trade-offs between different algorithms (e.g., ARIMA vs. XGBoost)?
  • Can you provide a code example for retraining the model on a schedule?