SkillAgentSearch skills...

Transformer Time Series Prediction

proof of concept for a transformer-based time series prediction model

Install / Use

npx skills add oliverguhr/transformer-time-series-prediction

Installs into whichever agent you are using.

About this skill

Quality Score

0/100

Supported Platforms

Universal

README

Transformer Time Series Prediction

This repository contains two Pytorch models for transformer-based time series prediction. Note that this is just a proof of concept and most likely not bug free nor particularly efficient.

  • transformer-singlestep.py contains a single-step prediction model
  • transformer-multistep.py contains a multi-step prediction model

This is the output of a single step prediction model that has been trained for 100 epochs on the daily minimum temperature dataset.

For any serious use case, head over to the flow-forecast package.

image

The model is also capable of multi-step predictions. In this case, the model predicted 200 steps based on 100 steps input. It was able to learn long term trend from the training data:

image

(input blue, prediction red)

Related Skills

View on GitHub
GitHub Stars1.5k
CategoryDevelopment
Updated15h ago
Forks259

Languages

Python

Security Score

95/100

Audited on Aug 7, 2026

No findings