Skip to main content

Time Series Forecasting Tool

Project description

TSFT — Time Series Forecasting Tool

Python Darts Dash

TSFT is a CLI utility for training deep learning forecasting models, generating exploratory reports, and visualizing results for time series data.

It is built on top of Darts + PyTorch Lightning and provides a simple command-line interface powered by Typer.

Features

  • Deep learning forecasting models (Darts-based)
  • Interactive Dash dashboards
  • Clean CLI interface

Dataset Requirements

  • Your dataset must have a column named timestamp, which will be used as the time index for the model.
  • For multivariate time series, dashboards are not very informative for datasets with more than 20 dimensions.

Installation

pip install tsft

Or install locally:

pip install -e .

Usage

tsft [COMMAND] [OPTIONS]

Available commands:

  • report — Launch exploratory dashboard for a dataset
  • run — Train a forecasting model
  • summary — Visualize training results

Generate Dataset Report

Launch an interactive dashboard for time series exploration:

tsft report data.csv

Optional:

tsft report data.csv --port 9000

Train a Model

Train a forecasting model on your dataset:

tsft run data.csv

With options:

tsft run data.csv \
  --model=nbeats \
  --input-chunk=24 \
  --output-chunk=12 \
  --epochs=5 \
  --no-stopper \
  --output=results/

Options

Option Description
--model Model name (lstm, gru, rnn, nbeats, transformer, tcn)
--input-chunk Input window length
--output-chunk Forecast horizon
--epochs Number of training epochs
--stopper / --no-stopper Enable/disable early stopping
--scale / --no-scale Scale time series before training
--train-fraction Fraction of data used for training (rest is validation)
--output Directory to save artifacts

View Training Results

Launch dashboard with training results:

tsft summary results/

Optional:

tsft summary results/ --port 9000

Example Workflow

# 1. Explore dataset
tsft report data.csv

# 2. Train model
tsft run data.csv --output=output_dir --model=nbeats --epochs=5 --input-chunk=30 --output-chunk=10 --no-stopper

# 3. View results
tsft summary outputs/

Dashboard Preview

Report Dashboard

Training Summary

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

tsft-0.1.1.tar.gz (12.2 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

tsft-0.1.1-py3-none-any.whl (16.7 kB view details)

Uploaded Python 3

File details

Details for the file tsft-0.1.1.tar.gz.

File metadata

  • Download URL: tsft-0.1.1.tar.gz
  • Upload date:
  • Size: 12.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/2.3.2 CPython/3.12.8 Windows/10

File hashes

Hashes for tsft-0.1.1.tar.gz
Algorithm Hash digest
SHA256 7eab15e4d1132aa8c8d82fb2eb3c0e2fbaf3714e6070b6a0b9cdb090941c8f19
MD5 e52abf3df0405813b03af433897a334d
BLAKE2b-256 ad8dd5a72e5f28f321ca2b9a50db8214e8faacaed125fac85b3144458d485557

See more details on using hashes here.

File details

Details for the file tsft-0.1.1-py3-none-any.whl.

File metadata

  • Download URL: tsft-0.1.1-py3-none-any.whl
  • Upload date:
  • Size: 16.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/2.3.2 CPython/3.12.8 Windows/10

File hashes

Hashes for tsft-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 fac8eaa13f0341bb3d5f4e01b66e532f5f178857ba886d50dbdb2a149c11e545
MD5 9e0a28a3a857e1af05b0bdd35b5acc7a
BLAKE2b-256 f71f6be98d1de704d3139fcf4db4ffac681ebdc401b516d414af950e07890c1e

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page