Skip to main content

Ready-to-use time series datasets for PyTorch Lightning

Project description

chronocratic-datasets

Ready-to-use time series datasets for PyTorch Lightning.

PyPI version Python 3.12+ License: BSD 3-Clause Build and Test Documentation Status PyPI Downloads GitHub Stars

Installation

Install the package via pip:

pip install chronocratic-datasets

Note: The PyPI package name uses a hyphen (chronocratic-datasets), but the import uses the chronocratic.datasets namespace:

from chronocratic.datasets import ...

Quick Start

from pathlib import Path

from chronocratic.datasets import ForecastingMode, WeatherModule

weather = WeatherModule(
    dataset_file_path=Path("data/weather.csv"),
    mode=ForecastingMode.UNIVARIATE,
)
weather.prepare_data()
weather.setup()
train_loader = weather.train_dataloader()

Datasets

Forecasting

  • ETT (Electricity Transformer Temperature): ETTh1, ETTh2, ETTm1, ETTm2 — transformer temperature data at hourly and 15-minute intervals
  • Weather: Weather and meteorological features from 2012 to 2017
  • Electricity: Hourly electricity load data

Classification

  • UCR (Univariate): Archive of univariate time series classification datasets
  • UEA (Multivariate): Archive of multivariate time series classification datasets

Features

  • PyTorch Lightning DataModules — Drop-in LightningDataModule implementations for seamless integration with Lightning training loops
  • Automatic caching with atomic writes — Downloaded and processed data is cached locally with atomic file operations to prevent corruption
  • DDP-compliant data loading — Workers share cached data correctly under Distributed Data Parallel training
  • Multiple forecasting modes — Switch between UNIVARIATE and MULTIVARIATE forecasting configurations
  • Built-in scaling — MinMax and Standard scalers applied automatically per dataset conventions
  • Type-safe API — Full type hints and Google-style docstrings for IDE autocomplete and static analysis

Documentation

Comprehensive documentation, including API reference, quickstart guides, and contributing instructions, is available at chronocratic-datasets.readthedocs.io.

License

BSD 3-Clause — see LICENSE for the full text.

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

chronocratic_datasets-0.1.0a1.tar.gz (247.7 kB view details)

Uploaded Source

Built Distribution

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

chronocratic_datasets-0.1.0a1-py3-none-any.whl (66.8 kB view details)

Uploaded Python 3

File details

Details for the file chronocratic_datasets-0.1.0a1.tar.gz.

File metadata

  • Download URL: chronocratic_datasets-0.1.0a1.tar.gz
  • Upload date:
  • Size: 247.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for chronocratic_datasets-0.1.0a1.tar.gz
Algorithm Hash digest
SHA256 750e68e99e9102f1307dbb799bf7a3eb472244cbd1904e4ade114a3d71a0c18a
MD5 1444dc0fb8066fc1091bd92fb460f05d
BLAKE2b-256 6c9c1db71eae4e9f39e033ac996455aca3ea9b5b74be01ace15b97cbefbdf9f8

See more details on using hashes here.

Provenance

The following attestation bundles were made for chronocratic_datasets-0.1.0a1.tar.gz:

Publisher: pypi-publish.yml on chronocratic/datasets

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file chronocratic_datasets-0.1.0a1-py3-none-any.whl.

File metadata

File hashes

Hashes for chronocratic_datasets-0.1.0a1-py3-none-any.whl
Algorithm Hash digest
SHA256 ce4a04b18869200e2a086bc87b71bbe560a16dc72e5fa8186d17945d5722db22
MD5 9fceac1c9b7555b0d043e4918814f5c1
BLAKE2b-256 ad87064eb6c17145feb29207027510d8201ad8a7a90e68a262fe7d85de40f35e

See more details on using hashes here.

Provenance

The following attestation bundles were made for chronocratic_datasets-0.1.0a1-py3-none-any.whl:

Publisher: pypi-publish.yml on chronocratic/datasets

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

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