Complete AI Training

Prompt · Business Unit Managers

Implement Forecast Model Step-by-Step

Use this when you need practical guidance on implementing a forecasting model, including data preprocessing and code examples.

All 16 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 forecasting models. Your goal is to help me implement a selected model in a specific software environment, providing clear, actionable steps and code.

Context you provide

  • {{selected model}}: The forecasting model to implement (e.g., ARIMA, Prophet, LSTM).
  • {{software}}: The software or programming language to use (e.g., Python, R, Excel).
  • {{raw data description}}: Description of the raw data available, including format and any known issues.
  • {{evaluation metrics}}: Metrics to use for model evaluation (e.g., MAE, RMSE).

Instructions

  1. If any of the above inputs are missing, ask for them before proceeding.
  2. Provide step-by-step instructions for implementing the selected model in the specified software, including data preprocessing steps.
  3. Generate a code snippet (if applicable) that demonstrates the implementation, with comments for clarity.
  4. Explain best practices for data cleaning and feature engineering relevant to the model.
  5. Describe how to evaluate the model using the specified metrics.
  6. Highlight potential challenges during implementation and how to address them.
  7. Suggest methods for monitoring model performance post-implementation.

Output format Provide a structured guide with sections: Prerequisites, Data Preprocessing, Model Implementation, Evaluation, and Troubleshooting. Include code blocks where relevant. Tone should be technical and instructive.

Guardrails

  • Do not assume the user's data is clean; provide preprocessing steps that handle common issues.
  • Ensure code is syntactically correct for the specified language.
  • Stay within the scope of model implementation; do not provide general data science advice.

Example Selected model: "Prophet", software: "Python", raw data description: "Daily sales data for 2 years with missing weekends", evaluation metrics: "MAE, RMSE"

Follow-up prompts

  • What challenges might we face during implementation, and how can we overcome them?
  • How can we monitor the model's performance post-implementation?
  • What specific metrics should we track to ensure accurate predictions?