Skip to content

umassos/FMTK

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

20 Commits
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

FMTK: A Modular Toolkit for Composable Time Series Foundation Model Pipelines

Overview

Foundation models (FMs) have opened new avenues for machine learning applications due to their ability to adapt to new and unseen tasks with minimal or no further training. Time-series foundation models (TSFMs)---FMs trained on time-series data---have shown strong performance on classification, regression, and imputation tasks. Recent pipelines combine TSFMs with task-specific encoders, decoders, and adapters to improve performance; however, assembling such pipelines typically requires ad hoc, model-specific implementations that hinder modularity and reproducibility. We introduce FMTK, an open-source, lightweight and extensible toolkit for constructing and fine-tuning TSFM pipelines via standardized backbone and component abstractions. FMTK enables flexible composition across models and tasks, achieving correctness and performance with an average of seven lines of code.

Architecture

Code Map

fmtk/
β”œβ”€β”€ pipeline.py             # Main pipeline implementation
β”œβ”€β”€ metrics.py              # Evaluation metrics
β”œβ”€β”€ utils.py                # Evaluation metrics
β”œβ”€β”€ logger.py               # Memory, Energy logger
β”œβ”€β”€ datasets/
β”‚   └── ecg5000.py          # ECG5000 dataset implementation
β”‚   └── ... 
β”œβ”€β”€ components/
β”‚   β”œβ”€β”€ backbones/
β”‚   β”‚   └── chronos.py      # Chronos foundation model
β”‚   β”‚   └── ...            
β”‚   β”œβ”€β”€ encoders/
β”‚   β”‚   └── ...             # Encoders
β”‚   └── decoders/
β”‚       β”œβ”€β”€ classification/  
β”‚       β”‚   └── ...         # Classification decoders
β”‚       β”œβ”€β”€ regression/
β”‚       β”‚   └── ...         # Regression decoders
β”‚       └── forecasting/
β”‚           └── ...         # Forecasting decoders

Installation

Clone the repo

cd FMTK
conda create -n fmtk python=3.10
conda activate fmtk
pip install -e .

For working with PPG-BP data related tasks install

pip install pyPPG==1.0.41

Note: There might be a package conflict, but it should still function correctly.

For quick start please check out examples.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published