skforecast/skforecast-ai/deep-learning-forecasting
- community
Checking that the SKILL.md file is still in the repository.
Forecasts time series using recurrent neural networks (RNN, LSTM, GRU) with ForecasterRnn and the create_and_compile_model helper. Covers model architecture, training, and multi-series deep learning. Use when the user wants to use deep learning / neural networks for time series forecasting.
Install
npx vskill@latest install skforecast/skforecast-ai/deep-learning-forecastingSKILL.md
The same SKILL.md was published earlier as skforecast/skforecast/deep-learning-forecasting.
Deep Learning Forecasting (RNN/LSTM)
When to Use
Use ForecasterRnn when:
- You have large datasets (thousands of observations)
- Complex nonlinear patterns that tree-based models struggle with
- Multi-series problems where series share deep temporal patterns
Requirements: pip install skforecast[deeplearning] (installs keras)
Related skills
- Prerequisite:
choosing-a-forecaster(confirmForecasterRnnis the right choice for the data size and pattern) - Prerequisite:
feature-engineering(RNN models still benefit from cyclical / calendar exogenous features) - Next:
hyperparameter-optimization(tune RNN architecture and training hyperparameters) - Next:
prediction-intervals(only conformal intervals are supported forForecasterRnn)
Stop Conditions
Scan before writing code. Each row lists a rule, the symptom when it is broken, and the recovery. Full pitfall catalog: the troubleshooting-common-errors skill.
| Rule | Symptom | Recovery | |
|---|---|---|---|
lags in ForecasterRnn must match create_and_compile_model(..., lags=...) | Input shape mismatch error during fit | Use the same lags value in both calls | |
ForecasterRnn supports only method='conformal' for intervals | Error when calling predict_interval(method='bootstrapping') | Use method='conformal' | |
Pass exog to create_and_compile_model if exog is used in fit() / predict() | Architecture mismatch or failure when predicting with exog | Build the model with the same exog you train on | |
Scale inputs with transformer_series=MinMaxScaler() | Poor convergence; RNNs are scale-sensitive | Always set a scaler on transformer_series |
Quick Start
Model Architecture with create_and_compile_model
With Exogenous Variables
When using exogenous variables, pass exog to create_and_compile_model so it builds the correct architecture (uses TimeDistributed layers internally).
Custom Keras Model
Multi-series custom model: For N levels, the output layer should beDense(steps * n_levels)followed byReshape((steps, n_levels)).
Prediction Intervals
Backtesting
Common Mistakes
- Not scaling data: RNNs are sensitive to scale. Always use
transformer_series=MinMaxScaler(). - Too few epochs: Deep learning needs more training iterations. Start with 50-100 epochs.
- Wrong input shape: The
lagsparameter inForecasterRnnandcreate_and_compile_modelmust match. - Refit=True in backtesting: Retraining RNNs at every fold is very slow — use
refit=Falseorrefit=5. - No GPU: Training is slow on CPU. Use GPU if available.
- Using `predict_interval(method='bootstrapping')`: ForecasterRnn only supports
method='conformal'. - Forgetting `exog` in `create_and_compile_model`: If you use exog in
fit()/predict(), you must also passexogwhen building the model so the architecture accounts for the extra input features.
References
See references/architecture-options.md for the complete create_and_compile_model signature, recurrent layer types, output shape rules, exog architecture, custom Keras model requirements, and fit_kwargs options.
Security
- Security scanPassed, 100 of 100Pattern checks on the skill's files.
- Model reviewNot runA model review is scheduled for the next rescan.
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckingskforecast_ai/skills/deep-learning-forecasting/SKILL.md
Popularity
- Repository stars
- 50
- Repository forks
- 6
- 7-day trend score
- 20
Stars and forks are for the whole GitHub repository, not this skill alone. Not refreshed yet.
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Cursor
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/skforecast/skforecast-ai/deep-learning-forecasting)