Skip to main content
Pre-release

This release is a pre-release and may not be stable for production use.

chronocratic-models

PyPI version Total downloads CI status License GitHub stars Code style: ruff

Python Docs
Python versions Documentation status

Installation

With pip:

pip install chronocratic-models

With uv:

uv add chronocratic-models

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

Quick Start

import torch
from lightning.pytorch import Trainer
from chronocratic.models import TS2Vec, TS2VecModelParameters

# Create model using parameters dataclass
params = TS2VecModelParameters(input_dims=1)
model = TS2Vec(**vars(params))

# Prepare synthetic time series (n_instance, n_timestamps, n_features)
synthetic_data = torch.randn(2, 100, 1)

# Train the model first (models do not ship with pre-trained weights)
trainer = Trainer(max_epochs=1, accelerator="cpu", enable_checkpointing=False)
trainer.fit(model, train_dataloaders=synthetic_data)

# Get multi-scale representations
representations = model.encode(
    synthetic_data,
    batch_size=2,
    num_workers=0,
    encoding_window="multiscale",
)
print(representations.shape)

⭐ Found this useful? Give it a star. chronocratic-models is free and open source. A star takes one click, tells us the work is worth continuing, and helps other time series researchers find the project.

Models

The package ships with self-supervised time-series models across these architectures:

Category Import
Convolutional (Dilated) TS2Vec, CoST, AutoTCL
Convolutional (Standard) Series2Vec, TSTCC, SimCLR, MHCCL, MCL
Transformer TST
Recurrent TimeNet, RecurrentAutoEncoder
Generative TimeVAE

For details (original papers, encoder architecture, default hyperparameters), see the API reference and the ModelParameters dataclass for each model. The list above is maintained by the exports in chronocratic.models; adding a model is just extending __init__.py.

Important: No pre-trained weights are included — train on your own data before inference.

Features

  • Polymorphic augmentation producer contract — models accept any augmentation through a unified interface, eliminating enum-based branching.
  • Lightning integration — all models are built on PyTorch Lightning for clean training loops and extensibility.
  • Self-supervised representation learning — train encoders for downstream tasks without labeled data.
  • Pre-configured model parameters — each model ships with tested default configuration dataclasses.
  • NumPy and PyTorch tensor support — flexible input handling for both frameworks.

Documentation

For full API reference, guides, and examples, visit chronocratic-models.readthedocs.io.

Contributing

For development setup, linting, testing, and coding standards, see docs/contributing.md.

License

This project is licensed under the BSD 3-Clause License — see the LICENSE file for details.

The Chronocratic name and logo are not covered by the license. All rights reserved.

Metadata

Release files for chronocratic-models 0.1.0rc2

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for chronocratic-models 0.1.0rc2
File Size Uploaded Provenance Actions
chronocratic_models-0.1.0rc2.tar.gz 564.8 kB With provenance Details for chronocratic_models-0.1.0rc2.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for chronocratic-models 0.1.0rc2
File Interpreter ABI Platform Actions
chronocratic_models-0.1.0rc2-py3-none-any.whl Python 3 none any Details for chronocratic_models-0.1.0rc2-py3-none-any.whl

Total release size: 784.0 kB

Release files / chronocratic_models-0.1.0rc2.tar.gz

Download URL chronocratic_models-0.1.0rc2.tar.gz
Size 564.8 kB
Tags Source
SHA-256 checksum
How to use checksums
41fd40091fbe52777a820fb43a8cac2e4047ee241e6b8a606838b35d17ce3efd
BLAKE2b-256 checksum
How to use checksums
3e711f0a7afae015b183348a79f8509cdf6be350f8b2fc01109e25276225eeb0
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 20, 2026.

Transparency log

Release files / chronocratic_models-0.1.0rc2-py3-none-any.whl

Download URL chronocratic_models-0.1.0rc2-py3-none-any.whl
Size 219.2 kB
Tags Python 3
SHA-256 checksum
How to use checksums
009bd0415d496ab8a72cd15ca357ad6fc934a51180fe7856920143957ff8b74d
BLAKE2b-256 checksum
How to use checksums
a67471a67c1020b097d7862e8320acdfdcaa508f3cf85dd62fd6f6fb451e7871
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 20, 2026.

Transparency log

Security for chronocratic-models 0.1.0rc2

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

Full provenance

Both files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for chronocratic_models-0.1.0rc2.tar.gz

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 20, 2026.

Transparency log

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page