Skip to content

Latest commit

 

History

3 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

forecastlib

A PyTorch Lightning–based library of time series forecasting models, data loaders and utilities. Adapted and reorganized from thuml/Time-Series-Library: the models are more or less the same, wrapped for Lightning with better logging, plus additions for differencing, database-backed model/forecast storage and a Dash dashboard.

Installation

Using uv:

uv add "forecastlib @ git+https://github.com/mspils/forecastlib"

or with pip:

pip install "forecastlib @ git+https://github.com/mspils/forecastlib"

Optional extras

Extra Enables
database forecastlib.database, forecastlib.dashboard, forecastlib.app (Oracle/SQLite logging + Dash dashboard)
wrappers forecastlib.models.WrapperClasses (Pastas + XGBoost wrappers)
mamba The Mamba model (needs a CUDA build of mamba-ssm; MambaSimple works without it)
uv add "forecastlib[database,wrappers] @ git+https://github.com/mspils/forecastlib"

Usage

import forecastlib
from forecastlib import CustomLightningModule

# CustomLightningModule, EnsembleModule, UncertaintyLightningModule, WeightingModel
# are exported at the top level.

When using the database extra, configuration is read from a .env file — see .env.example.

Development

uv sync --extra dev
uv run poe lint
uv run poe test

License

MIT — see LICENSE.

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages